diff options
author | Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com> | 2019-05-24 13:34:10 +0700 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-06-18 17:22:09 +0900 |
commit | cc9e192a990e2f573fbe680cf97368d73ab24f69 (patch) | |
tree | b57c6a5f7b6603add7dc86bce7df67f27b3a2714 /src/daemon | |
parent | 0682f9a222821dc6a83b6cf493f1b832104da8fb (diff) | |
download | DLT-daemon-cc9e192a990e2f573fbe680cf97368d73ab24f69.tar.gz |
daemon: Don't assign fd after free
Do not assign fd after destroying receiver pointer
Signed-off-by: Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/dlt-daemon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 5fee93e..b587ead 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -1654,7 +1654,6 @@ int dlt_daemon_process_client_messages(DltDaemon *daemon, daemon, daemon_local, verbose); - receiver->fd = -1; return -1; } @@ -1904,7 +1903,6 @@ int dlt_daemon_process_control_messages( daemon, daemon_local, verbose); - receiver->fd = -1; /* FIXME: Why the hell do we need to close the socket * on control message reception ?? */ @@ -2028,7 +2026,6 @@ int dlt_daemon_process_user_messages(DltDaemon *daemon, daemon, daemon_local, verbose); - receiver->fd = -1; return 0; } |