summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-01-23 15:31:17 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-01-28 17:17:08 +0100
commit0588a5847a2f2b3786ea6033aae4c652746b0700 (patch)
treef672ae138113c51a582fd376c02827adccb330b8 /lib
parent99a9855d38d8bfaec5bd03b8aaeca01cefa22b00 (diff)
downloadsamba-0588a5847a2f2b3786ea6033aae4c652746b0700.tar.gz
samba-0588a5847a2f2b3786ea6033aae4c652746b0700.tar.xz
samba-0588a5847a2f2b3786ea6033aae4c652746b0700.zip
uwrap: Make sure we leave if the id is NULL.
CID #97616 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/uid_wrapper/uid_wrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c
index 44ef8c13bd..1d49a852cd 100644
--- a/lib/uid_wrapper/uid_wrapper.c
+++ b/lib/uid_wrapper/uid_wrapper.c
@@ -656,6 +656,7 @@ static void uwrap_pthread_exit(void *retval)
if (id == NULL) {
UWRAP_UNLOCK(uwrap_id);
libpthread_pthread_exit(retval);
+ return;
}
UWRAP_DLIST_REMOVE(uwrap.ids, id);