diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-02 00:11:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-02 00:11:12 +0000 |
commit | b1c722e306533babeffeba9d8c7dcfa00e019423 (patch) | |
tree | 6921713104375d53909d4c7f98fdfd0855fc305c /source/libsmb/clientgen.c | |
parent | 50a49e0babc67ca20435577d7336ec36e7487b67 (diff) | |
download | samba-b1c722e306533babeffeba9d8c7dcfa00e019423.tar.gz |
More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r-- | source/libsmb/clientgen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 3d0bad6c99d..b35c7ea2eda 100644 --- a/source/libsmb/clientgen.c +++ b/source/libsmb/clientgen.c @@ -114,9 +114,12 @@ BOOL cli_receive_smb(struct cli_state *cli) cli->smb_rw_error = smb_read_error; close(cli->fd); cli->fd = -1; + return ret; } - return ret; + if (!cli_check_sign_mac(cli)) { + DEBUG(0, ("SMB Signiture verification failed on incoming packet!\n")); + }; } /**************************************************************************** |