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:20:12 +0000 (15:20 +0200)
commit3d7e0cc40b1992f4555807acec4f00450e30e2de
tree875e7bc4865d0f0c4c06e783d2cca58818ec315b
parentb37030644e32249706d431ad93881d540f351c50
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
source/nsswitch/libwbclient/wbc_sid.c