diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-06-16 04:21:56 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-06-16 04:21:56 +0000 |
commit | 60ad5b69808c0ebfecd13c8f741f4e5687742899 (patch) | |
tree | 8669807f3753437a6ab007614ed2fc7dd125d92c /source3/libsmb/clientgen.c | |
parent | ba73192c3cec720656f65ede44f82d9e6027a9aa (diff) | |
download | samba-60ad5b69808c0ebfecd13c8f741f4e5687742899.tar.gz samba-60ad5b69808c0ebfecd13c8f741f4e5687742899.tar.bz2 samba-60ad5b69808c0ebfecd13c8f741f4e5687742899.zip |
Fix up some of the SMB signing code:
The problem was that *all* packets were being signed, even packets before
signing was set up. (This broke the session request).
This fixes it to be an 'opt in' measure - that is, we only attempt to sign
things after we have got a valid, non-guest session setup as per the CIFS spec.
I've not tested this against an MS server, becouse my VMware is down, but
at least it doesn't break the build farm any more.
Andrew Bartlett
(This used to be commit 1dc5a8765876c1ca822e454651f8fd4a551965e9)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index e7e88687b8..c9500ead5d 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -120,8 +120,7 @@ BOOL cli_send_smb(struct cli_state *cli) if (cli->fd == -1) return False; - if (SVAL(cli->outbuf,smb_flg2) & FLAGS2_SMB_SECURITY_SIGNATURES) - cli_caclulate_sign_mac(cli); + cli_caclulate_sign_mac(cli); len = smb_len(cli->outbuf) + 4; |