Fix wrong network interface length when secured option is true
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Tue, 16 Aug 2016 22:54:59 +0000 (07:54 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 19 Aug 2016 10:42:16 +0000 (10:42 +0000)
If secured option is true, network interface length contain
invalid values.

Change-Id: Id6a99ad9ea5d03de724239e9a0d9b21ece3cbe19
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10525
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/ip_adapter/caipserver.c

index f569b7c..2cd8e00 100644 (file)
@@ -1503,7 +1503,7 @@ CAResult_t CAGetIPInterfaceInformation(CAEndpoint_t **info, uint32_t *size)
     }
 
     *info = eps;
-    *size = len;
+    *size = length;
 
     u_arraylist_destroy(iflist);