winbindd: Avoid using deallocated memory
authorSantosh Kumar Pradhan <spradhan@redhat.com>
Thu, 20 Feb 2014 10:21:37 +0000 (15:51 +0530)
committerJeremy Allison <jra@samba.org>
Thu, 20 Feb 2014 19:41:51 +0000 (11:41 -0800)
commit30cd122beb32d0935afcd5bc2f3192f3c25aaeea
treee8d2a8158d2257fa826f93f3be5d6470caa76624
parentbd55fdbf09bd91351e097d4b71925c84de7b2a6e
winbindd: Avoid using deallocated memory

Failure in ads_search_retry() deallocates the memory occupied
by "ads" which should not be used after.

CID: 242096

Signed-off-by: Santosh Kumar Pradhan <spradhan@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/winbindd/winbindd_ads.c