uwrap: Fix a possible null pointer dereference
authorAndreas Schneider <asn@samba.org>
Fri, 30 Oct 2015 12:37:11 +0000 (13:37 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 5 Nov 2015 08:23:15 +0000 (09:23 +0100)
commit656f0db652969bd0cd8faf145479e78356fc7252
tree368258ddc35b937ed28e45440481ba5f96f8d927
parentaad7019e2db23521772542cc2da2b1d8bc863024
uwrap: Fix a possible null pointer dereference

If uid_wrapper is loaded but not enabled (UID_WRAPPER environment
variable not set), then we dereference a NULL pointer while forking.

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