Fix a segfault in wbcLookupSid
commite41d7aa1d5bacf4ed95fb4a6be801db0aa1b15dd
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 12:53:07 +0000 (17 14:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 17 Jun 2008 14:07:32 +0000 (17 16:07 +0200)
tree33029471e2320a21509f739ee9cd1aea11987f43
parent067ab1f0f8b5829922586da4d5bb0ae9f181e9dc
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)
source/nsswitch/libwbclient/wbc_sid.c