summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-05 12:04:33 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-05 12:04:33 +0000
commit341f87090bad76c427bae85bf81798aaea6c659b (patch)
treed03c2a32920b5d47d0d84cf2589f1a2923a07e07
parent40cddb6588a6870f427dfee7697fddd8e9f66091 (diff)
downloadsamba-341f87090bad76c427bae85bf81798aaea6c659b.tar.gz
samba-341f87090bad76c427bae85bf81798aaea6c659b.tar.bz2
samba-341f87090bad76c427bae85bf81798aaea6c659b.zip
Fix up the SPNEGO segfault.
(This used to be commit 17b1c83dd02035048bd38b305460c96c6c09343a)
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 737ecade7d..8b7a29ea86 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -23,7 +23,7 @@
#include "includes.h"
uint32 global_client_caps = 0;
-static struct auth_context *ntlmssp_auth_context;
+static struct auth_context *ntlmssp_auth_context = NULL;
/*
on a logon error possibly map the error to success if "map to guest"
@@ -288,7 +288,7 @@ static int reply_spnego_negotiate(connection_struct *conn,
DEBUG(3,("Got neg_flags=%08x\n", neg_flags));
- if (!ntlmssp_auth_context) {
+ if (ntlmssp_auth_context) {
ntlmssp_auth_context->free(&ntlmssp_auth_context);
}