SMB signing updates - this gets NTLMSSP signing workin to the point where I
[samba.git] / source / libsmb / clientgen.c
index 0da9a8932fc909e0e72720809d6b83523d5ea68e..fe9453e6f2d6bdad8f71b99034de3aa6b1f7d516 100644 (file)
@@ -118,7 +118,10 @@ BOOL cli_receive_smb(struct cli_state *cli)
        }
 
        if (!cli_check_sign_mac(cli)) {
-               DEBUG(0, ("SMB Signiture verification failed on incoming packet!\n"));
+               DEBUG(0, ("SMB Signature verification failed on incoming packet!\n"));
+               cli->smb_rw_error = READ_BAD_SIG;
+               close(cli->fd);
+               cli->fd = -1;
                return False;
        };
        return True;