fix crash issue related findResource in OCConnectionManager
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 16 Feb 2017 12:08:18 +0000 (21:08 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 17 Feb 2017 05:42:43 +0000 (05:42 +0000)
Change-Id: I0684c10f499e5bbf48127cc271cc0d58535cf28e
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17321
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: jaehyun Cho <jaehyun3.cho@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/ocstack.c

index 70fecf1..1a8cbc7 100644 (file)
@@ -1602,7 +1602,7 @@ void OCHandleResponse(const CAEndpoint_t* endPoint, const CAResponseInfo_t* resp
                                   response->devAddr.remoteId);
 
 #if defined(TCP_ADAPTER) && defined(WITH_CLOUD)
-                        OCCMDiscoveryResource(&response);
+                        OCCMDiscoveryResource(response);
 #endif
                     }
                 }