s3: Fix Coverity ID 2304: FORWARD_NULL
[samba.git] / source3 / smbd / sesssetup.c
index b8f82c0aa2f369d0c717da1a7a25e4d50d15282c..c5d44c6185e1de8e620012553b4db34ec35339a8 100644 (file)
@@ -28,7 +28,6 @@
 #include "../libcli/auth/spnego.h"
 #include "../libcli/auth/ntlmssp.h"
 #include "ntlmssp_wrap.h"
-#include "librpc/gen_ndr/messaging.h"
 #include "../librpc/gen_ndr/krb5pac.h"
 #include "libads/kerberos_proto.h"
 #include "../lib/util/asn1.h"
@@ -674,9 +673,7 @@ static void reply_spnego_negotiate(struct smb_request *req,
        }
 #endif
 
-       if (*auth_ntlmssp_state) {
-               TALLOC_FREE(*auth_ntlmssp_state);
-       }
+       TALLOC_FREE(*auth_ntlmssp_state);
 
        if (kerb_mech) {
                data_blob_free(&secblob);