summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/negprot.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 4362bb5467..b984558fb4 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -230,11 +230,8 @@ static int negprot_spnego(char *p, uint8 *pkeylen)
}
data_blob_free(&blob);
- if (lp_security() != SEC_ADS && !lp_use_kerberos_keytab()) {
- *pkeylen = 0;
- } else {
- *pkeylen = len;
- }
+ *pkeylen = 0;
+
return len;
}