Quick fix on getting secure port information
authorWoochul Shim <woochul.shim@samsung.com>
Thu, 17 Sep 2015 06:03:20 +0000 (15:03 +0900)
committerSachin Agrawal <sachin.agrawal@intel.com>
Thu, 17 Sep 2015 06:06:41 +0000 (06:06 +0000)
Change-Id: Ife4f339fadb8319b15a1409aa87bbdf06a8dda92
Signed-off-by: Woochul Shim <woochul.shim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2621
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: Sachin Agrawal <sachin.agrawal@intel.com>
resource/csdk/security/provisioning/src/pmutility.c

index d160de879bca6212f86930aa5444646ae8a98fa7..59ae01029cfa8cf75fee05a0bffbb603638c6a45 100644 (file)
@@ -551,7 +551,7 @@ static OCStackApplicationResult DeviceDiscoveryHandler(void *ctx, OCDoHandle UNU
                 cbData.cb = &SecurePortDiscoveryHandler;
                 cbData.context = ctx;
                 cbData.cd = NULL;
-                OCStackResult ret = OCDoResource(NULL, OC_REST_GET, query, 0, 0,
+                OCStackResult ret = OCDoResource(NULL, OC_REST_DISCOVER, query, 0, 0,
                         clientResponse->connType, OC_LOW_QOS, &cbData, NULL, 0);
                 // TODO: Should we use the default secure port in case of error?
                 if(OC_STACK_OK != ret)