summaryrefslogtreecommitdiff
path: root/source3/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
commit4f1cc7b4958f06a54da92c82f19fba61e76d25b8 (patch)
tree5074dce67ff65cc88bf89e77617dc7649700aa67 /source3/auth
parent39e0dbcf07251670b5475e9d0533c08a2712fffa (diff)
downloadsamba-4f1cc7b4958f06a54da92c82f19fba61e76d25b8.tar.gz
samba-4f1cc7b4958f06a54da92c82f19fba61e76d25b8.tar.bz2
samba-4f1cc7b4958f06a54da92c82f19fba61e76d25b8.zip
Allow auth_ntlmssp_end() to ignore null pointers passed in.
Jeremy. (This used to be commit b7628f3a47166791db4cd6451d52ea3881a45bed)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_ntlmssp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index 526f2c93df..ed66d0db0a 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/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);
}