summaryrefslogtreecommitdiff
path: root/source/libsmb/clientgen.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-02 00:11:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-02 00:11:12 +0000
commitb1c722e306533babeffeba9d8c7dcfa00e019423 (patch)
tree6921713104375d53909d4c7f98fdfd0855fc305c /source/libsmb/clientgen.c
parent50a49e0babc67ca20435577d7336ec36e7487b67 (diff)
downloadsamba-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.c5
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"));
+ };
}
/****************************************************************************