Fixing Iotivity crash in catcpserver 03/221603/1
authorsamanway <samanway@linux-samanway.sa.corp.samsungelectronics.net>
Thu, 19 Dec 2019 12:44:45 +0000 (18:14 +0530)
committerSudipto Bal <sudipto.bal@samsung.com>
Mon, 6 Jan 2020 05:44:14 +0000 (05:44 +0000)
commit4db7d3ff6a992015da414aaf11b9b05fceaa5b90
tree421d7a3d6cd6234a4b7545158c0ad7cbed8b898a
parent0b3468590b08bfb8d617b4e207988dd27ddc7ad1
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