s3:schannel fix memory hierarchy
commite5ab64a79902e710636352b01ccd0012d5df1c31
authorSimo Sorce <idra@samba.org>
Fri, 19 Feb 2010 14:34:48 +0000 (19 09:34 -0500)
committerSimo Sorce <idra@samba.org>
Tue, 23 Feb 2010 17:46:50 +0000 (23 12:46 -0500)
tree2c24988438bec6d72139162e44387531930b9b9e
parentbb9014d5cbbc2ebb8fbd9fab05a3f3fc57e725b8
s3:schannel fix memory hierarchy

passing mem_ctx was causing creds->sid to be allocated on mem_ctx and not be
child of creds as expected. When later in schannel_check_creds_state() we
stole the creds on a different memory context the sid was left behind and the
memory it points to freed when the temporary context was freed.
libcli/auth/schannel_state_tdb.c