mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
r3075: Initialise (and check for intialisation) of the private pointer to
ensure we don't segfault on the cleanup from an incomplete schannel bind. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3759128bd3
commit
173f29a1d8
@@ -278,8 +278,10 @@ NTSTATUS schannel_sign_packet(struct schannel_state *state,
|
||||
*/
|
||||
void schannel_end(struct schannel_state **state)
|
||||
{
|
||||
talloc_destroy((*state)->mem_ctx);
|
||||
(*state) = NULL;
|
||||
if (*state) {
|
||||
talloc_destroy((*state)->mem_ctx);
|
||||
(*state) = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user