Fixing Iotivity crash in catcpserver 57/221557/3
authorsamanway <samanway@linux-samanway.sa.corp.samsungelectronics.net>
Thu, 19 Dec 2019 12:44:45 +0000 (18:14 +0530)
committerPyun DoHyun <dh79.pyun@samsung.com>
Sun, 12 Jan 2020 23:06:16 +0000 (23:06 +0000)
commit4de96f2ba8e5ecb143a3b988ef87ed2e03ff04ed
tree4ceddac6311c85d0fcc59033319fe5152fb91e7e
parentbf3210a426f75dfbbd298f0330bb7e0ab6e9418f
Fixing Iotivity crash in catcpserver

- Memory was being freed in function CADisconnectTCPSession without checking NULL condition
- This caused crash in IoTivity, fix is patched
- Also, a potential dangling pointer issue fized in uqeue.c

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/ced81117e624a1f416df3f5ff226427b2d070515
(cherry-picked from ced81117e624a1f416df3f5ff226427b2d070515)

Change-Id: Ic6ede9df63aa8e5590c253f9430eeba401231347
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/connectivity/common/src/uqueue.c
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c