IOT-1461 Fix double-close bugs
authorDan Mihai <Daniel.Mihai@microsoft.com>
Tue, 25 Oct 2016 18:33:58 +0000 (11:33 -0700)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 8 Nov 2016 10:09:26 +0000 (10:09 +0000)
commit1ba9c5d84259578bafb04e2f2be772c01747a5a9
tree7787729f3a295054f60a7cf6e4391d4efc7aa44b
parent65e501ca1192df812a09ea79cff801140fa31f2d
IOT-1461 Fix double-close bugs

1. Fix two handle double-close bugs.
2. Add asserts to catch possible similar bugs.
3. Log WSAGetLastError in decimal, for easier match with the values
from MSDN docs.

Change-Id: I7f382344994c496c67e2e370d2241f080ce0e71c
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13665
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/c_common/iotivity_debug.h [new file with mode: 0644]
resource/c_common/octhread/src/windows/octhread.c
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/connectivity/src/ip_adapter/windows/caipnwmonitor.c