summaryrefslogtreecommitdiff
path: root/source3/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
commitac2eeb7a8f49d389e024af82184b86e79bfd8976 (patch)
tree35302b2b4342d1d0cd8626bc484e63330bf96981 /source3/libsmb/clientgen.c
parentbdeb0de487dfa12fe178eb0b0430fff069ad047d (diff)
downloadsamba-ac2eeb7a8f49d389e024af82184b86e79bfd8976.tar.gz
samba-ac2eeb7a8f49d389e024af82184b86e79bfd8976.tar.bz2
samba-ac2eeb7a8f49d389e024af82184b86e79bfd8976.zip
More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett (This used to be commit b1c722e306533babeffeba9d8c7dcfa00e019423)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 3d0bad6c99..b35c7ea2ed 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/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"));
+ };
}
/****************************************************************************