uwrap: Make sure we leave if the id is NULL.
authorAndreas Schneider <asn@samba.org>
Fri, 23 Jan 2015 14:31:17 +0000 (15:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 28 Jan 2015 16:17:08 +0000 (17:17 +0100)
CID #97616

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/uid_wrapper/uid_wrapper.c

index 44ef8c13bde9b5c9c8f8538fa1648a9b8019de31..1d49a852cda693add946230d8114c2181436e2d8 100644 (file)
@@ -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);