1
0
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:
Andrew Bartlett
2004-10-20 02:10:46 +00:00
committed by Gerald (Jerry) Carter
parent 3759128bd3
commit 173f29a1d8
2 changed files with 8 additions and 2 deletions

View File

@@ -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;
}
}
/*