diff options
author | Sourav Bhuwalka <s.bhuwalka@samsung.com> | 2020-05-28 04:25:07 +0530 |
---|---|---|
committer | Sudipto <sudipto.bal@samsung.com> | 2020-06-19 22:40:38 +0530 |
commit | 1fa7e7fb1d9e4e68c877af85d22cf97ad5d67723 (patch) | |
tree | 65d8263d570bca931dacc3f69b4e8c6b73cceeae /resource/csdk/connectivity | |
parent | adac38dbe0b0d6cdf6a4b86b2068c3558d1eeac6 (diff) | |
download | iotivity-1fa7e7fb1d9e4e68c877af85d22cf97ad5d67723.tar.gz iotivity-1fa7e7fb1d9e4e68c877af85d22cf97ad5d67723.tar.bz2 iotivity-1fa7e7fb1d9e4e68c877af85d22cf97ad5d67723.zip |
[CONPRO-1591]:Crash in libconnectivity_abstraction.so [CAIPStopServer]
Setting the value of caglobals.ip.shutdownFds[1] to -1 to avoid
double closure of the same socket
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/706
(cherry-picked from 3dfe9fb3db7945b50a663a7ff545e11b576c1cfe)
Change-Id: Ia46a971ebdc834433f528986b3c772487f06c60c
Signed-off-by: Sourav Bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
Diffstat (limited to 'resource/csdk/connectivity')
-rw-r--r-- | resource/csdk/connectivity/src/ip_adapter/caipserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resource/csdk/connectivity/src/ip_adapter/caipserver.c b/resource/csdk/connectivity/src/ip_adapter/caipserver.c index 04a349553..375c26de1 100644 --- a/resource/csdk/connectivity/src/ip_adapter/caipserver.c +++ b/resource/csdk/connectivity/src/ip_adapter/caipserver.c @@ -1181,6 +1181,7 @@ void CAIPStopServer() if (caglobals.ip.shutdownFds[1] != -1) { close(caglobals.ip.shutdownFds[1]); + caglobals.ip.shutdownFds[1] = -1; // receive thread will stop immediately } else |