summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-14 18:05:37 -0800
committerJeremy Allison <jra@samba.org>2008-02-14 18:05:37 -0800
commitb7628f3a47166791db4cd6451d52ea3881a45bed (patch)
tree95ea24ca85d5be7d3637ab49d01ad552f130610b /source/auth
parente3e08c6e7d270e1be7a9d3042b1f36f5a291f90a (diff)
downloadsamba-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.c7
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);
}