diff options
author | Jeremy Allison <jra@samba.org> | 2006-08-17 19:49:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:41 -0500 |
commit | b4f39f4a9ed432d7bd687527b36d5ec93397d2b2 (patch) | |
tree | 75f5473976860da25c1df4fd5c59c82c250342f7 /source3 | |
parent | d0301937ede878a378677faa64ee2c06fec73681 (diff) | |
download | samba-b4f39f4a9ed432d7bd687527b36d5ec93397d2b2.tar.gz samba-b4f39f4a9ed432d7bd687527b36d5ec93397d2b2.tar.bz2 samba-b4f39f4a9ed432d7bd687527b36d5ec93397d2b2.zip |
r17595: Fix from Ben Winslow <rain@bluecherry.net> to allow
client smb signing to be correctly turned off.
Jeremy.
(This used to be commit 61f052b0a67b8a05b5d925bf8bbad73369ac03bd)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/smb_signing.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c index e277137e9b..a2df0cc38a 100644 --- a/source3/libsmb/smb_signing.c +++ b/source3/libsmb/smb_signing.c @@ -108,6 +108,10 @@ static BOOL set_sequence_can_delete_flag(struct outstanding_packet_lookup **list static BOOL cli_set_smb_signing_common(struct cli_state *cli) { + if (!cli->sign_info.allow_smb_signing) { + return False; + } + if (!cli->sign_info.negotiated_smb_signing && !cli->sign_info.mandatory_signing) { return False; |