diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2018-11-09 09:01:29 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-11-09 22:42:27 +0100 |
commit | 5d53870da1cb35f16f7eb9460e181593b5c0cf67 (patch) | |
tree | c2572b232828f9b737edc694d0920014d734985f /nsswitch | |
parent | 9b30350489cdcd496fa08e5e1116ad3e19ca3ba3 (diff) | |
download | samba-5d53870da1cb35f16f7eb9460e181593b5c0cf67.tar.gz |
nsswitch: Fix CID 1441070 Error handling issues (CHECKED_RETURN)
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/stress-nss-libwbclient.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nsswitch/stress-nss-libwbclient.c b/nsswitch/stress-nss-libwbclient.c index 740ad0e90fa..df1d85c9c40 100644 --- a/nsswitch/stress-nss-libwbclient.c +++ b/nsswitch/stress-nss-libwbclient.c @@ -149,7 +149,14 @@ int main(int argc, char *argv[]) /* wait for query threads to terminate */ for (n = 0; n < 2; n++) { - pthread_join(threads[n], NULL); + rc = pthread_join(threads[n], NULL); + if (rc != 0) { + fprintf(stderr, + "joining query thread %i failed: %s\n", + n, + strerror(rc)); + exit(1); + } } fprintf(state.fail ? stderr: stdout, |