Fix a segfault in wbcLookupSid
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 12:53:07 +0000 (14:53 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 13:22:04 +0000 (15:22 +0200)
commit7f9acfae7327ce96bf02064f9a0683de0f985521
tree13091adaed76163757c52ba6f8422cbcffd81806
parent08d63adc6197b5bbe7a64c4e8e1b547e5c478797
Fix a segfault in wbcLookupSid

If the BAIL_ON_WBC_ERROR directly after wbcRequestResponse kicks in, *domain
and *name have not been initialized yet. So the cleanup routine in the done:
part of the routine (which did not check for domain!=NULL etc) would access
uninitialized memory.

Jerry, please check!

Thanks,

Volker
(cherry picked from commit 3d7e0cc40b1992f4555807acec4f00450e30e2de)
(This used to be commit ac5ba26bb0488c3fb95072d84898c02b72c5b819)
source3/nsswitch/libwbclient/wbc_sid.c