diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-05 03:14:40 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-05 03:14:40 +0000 |
commit | 98f524bde4801bd0b013a6bc79c5552ef62b59f8 (patch) | |
tree | 1c42d63977a2a82aa87228ecf1d57742ac8f6fb0 /source3/smbd/negprot.c | |
parent | 1546ccfd24a712973c82fcd2064d3c48381f1360 (diff) | |
download | samba-98f524bde4801bd0b013a6bc79c5552ef62b59f8.tar.gz samba-98f524bde4801bd0b013a6bc79c5552ef62b59f8.tar.bz2 samba-98f524bde4801bd0b013a6bc79c5552ef62b59f8.zip |
Bugfix for leak in reference counted file struct.
Added "nt smb support" parameter to allow NT SMB's to be turned off.
Jeremy.
(This used to be commit 63f65f5027d5022153fa2757b49c56829db1725b)
Diffstat (limited to 'source3/smbd/negprot.c')
-rw-r--r-- | source3/smbd/negprot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 8e996cac21..b1e8a65c94 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -156,7 +156,8 @@ reply for the nt protocol static int reply_nt1(char *outbuf) { /* dual names + lock_and_read + nt SMBs + remote API calls */ - int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|CAP_RPC_REMOTE_APIS |CAP_NT_SMBS; + int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|CAP_RPC_REMOTE_APIS | + lp_nt_smb_support() ? CAP_NT_SMBS : 0; /* other valid capabilities which we may support at some time... |