diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-09-06 14:14:55 +0900 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-09-13 08:49:36 +0900 |
commit | 560e7c42975e2adb427642a49a180bc9f01f97d8 (patch) | |
tree | 7dcb24013cdc6dcceee04c1d3e78ba0481b6a0af /src | |
parent | fca93d9445c9714b5e266996e43dba349ae43e3a (diff) | |
download | DLT-daemon-560e7c42975e2adb427642a49a180bc9f01f97d8.tar.gz |
lib: Assign fd after it's closed
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dlt_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 4206dd2..5a7294a 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -253,6 +253,7 @@ static DltReturnValue dlt_initialize_socket_connection(void) } close(sockfd); + dlt_user.dlt_log_handle = -1; } else { dlt_user.dlt_log_handle = sockfd; |