Skip to content
Permalink
Browse files

samples: net: echo-server: Ignore the return value of close()

We are not interested in whether the close() call succeeds or
not when the connection is terminated.

Coverity-CID: 198878
Fixes #16569

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed Jun 8, 2019
1 parent 9a1e927 commit 104014154eb35241ae3c81146ea17baf477b972c
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/net/sockets/echo_server/src/tcp.c
@@ -169,7 +169,7 @@ static int process_tcp(struct data *data)
#endif
} while (true);

close(client);
(void)close(client);

return ret;
}

0 comments on commit 1040141

Please sign in to comment.
You can’t perform that action at this time.