Resolved bug IOT-685
authorShilpa Sodani <shilpa.a.sodani@intel.com>
Thu, 20 Aug 2015 09:45:54 +0000 (02:45 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Mon, 24 Aug 2015 21:52:30 +0000 (21:52 +0000)
commit41d68e205f5f93da28360b5e4a98f256c94c8239
treef58392c4404573342b8db62b7a166480273217b1
parentf535ffb570f0472c13e5fb788b121027ec286b2b
Resolved bug IOT-685

Resolved bug IOT-685. Due to unintialized value of field "interface" of
struct CAEndpoint_t and changed return value type of method  u_arraylist_add()
broke the security apps.

The unintailzed value of interface gave it random value
which inturn set the wrong value for ipv6 sockaddr_in6 struct field
"sin6_scope_id" causing "Network unreachable" error.

The return value of methode "u_arraylist_add()" was recently changed
from CAResult_t to bool. This caused seg fault.

Change-Id: I23fea80a0d6e12dd4122f2e032497a72496a4745
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: John Light <john.j.light@intel.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c
resource/csdk/stack/src/ocstack.c