From cc9e192a990e2f573fbe680cf97368d73ab24f69 Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Fri, 24 May 2019 13:34:10 +0700 Subject: daemon: Don't assign fd after free Do not assign fd after destroying receiver pointer Signed-off-by: Bui Nguyen Quoc Thanh --- src/daemon/dlt-daemon.c | 3 --- 1 file changed, 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; } -- cgit v1.2.1