diff options
author | Jeremy Allison <jra@samba.org> | 2008-02-14 18:05:37 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-02-14 18:05:37 -0800 |
commit | b7628f3a47166791db4cd6451d52ea3881a45bed (patch) | |
tree | 95ea24ca85d5be7d3637ab49d01ad552f130610b /source/auth | |
parent | e3e08c6e7d270e1be7a9d3042b1f36f5a291f90a (diff) | |
download | samba-b7628f3a47166791db4cd6451d52ea3881a45bed.tar.gz samba-b7628f3a47166791db4cd6451d52ea3881a45bed.tar.xz samba-b7628f3a47166791db4cd6451d52ea3881a45bed.zip |
Allow auth_ntlmssp_end() to ignore null pointers passed in.
Jeremy.
Diffstat (limited to 'source/auth')
-rw-r--r-- | source/auth/auth_ntlmssp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/auth/auth_ntlmssp.c b/source/auth/auth_ntlmssp.c index 526f2c93df0..ed66d0db0af 100644 --- a/source/auth/auth_ntlmssp.c +++ b/source/auth/auth_ntlmssp.c @@ -186,8 +186,13 @@ NTSTATUS auth_ntlmssp_start(AUTH_NTLMSSP_STATE **auth_ntlmssp_state) void auth_ntlmssp_end(AUTH_NTLMSSP_STATE **auth_ntlmssp_state) { - TALLOC_CTX *mem_ctx = (*auth_ntlmssp_state)->mem_ctx; + TALLOC_CTX *mem_ctx; + + if (*auth_ntlmssp_state == NULL) { + return; + } + mem_ctx = (*auth_ntlmssp_state)->mem_ctx; if ((*auth_ntlmssp_state)->ntlmssp_state) { ntlmssp_end(&(*auth_ntlmssp_state)->ntlmssp_state); } |