Skip to content

Commit

Permalink
samples: net: echo-server: Ignore the return value of close()
Browse files Browse the repository at this point in the history
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 9, 2019
1 parent 9a1e927 commit 1040141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/net/sockets/echo_server/src/tcp.c
Expand Up @@ -169,7 +169,7 @@ static int process_tcp(struct data *data)
#endif
} while (true);

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

return ret;
}
Expand Down

0 comments on commit 1040141

Please sign in to comment.