winbindd: Do not use user_list->out.resume_index after free
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Sep 2014 05:03:34 +0000 (17:03 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Sep 2014 05:26:34 +0000 (07:26 +0200)
commit34cc5bd260a9c7139d8d1e822f4e139e9c0ec2c0
treeaec89cc8cde236c671702c0486272371cef33520
parente93affbe1b4ff32858988bde79d00cdc82729089
winbindd: Do not use user_list->out.resume_index after free

Found by AddressSanitizer

Change-Id: I9f8b95b65de788994a7404fa8889fce45ccb3a30
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
source4/winbind/wb_cmd_setpwent.c