Fix up the SPNEGO segfault.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 5 Jan 2002 12:04:33 +0000 (12:04 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 5 Jan 2002 12:04:33 +0000 (12:04 +0000)
source/smbd/sesssetup.c

index 737ecade7d7a469f66d1b0d72ddbac9bd47acfeb..8b7a29ea863c5102cb386a0f9f599d4396ff81e2 100644 (file)
@@ -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);
        }