Only warn about short packets if we are already 'doing signing'.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 7 Apr 2003 09:35:35 +0000 (09:35 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Apr 2003 09:35:35 +0000 (09:35 +0000)
Andrew Bartlett
(This used to be commit 9656b8709128f24dd63094d504a6646f99933c57)

source3/libsmb/smb_signing.c

index 42c4d5574d5cc50d4cc3d2678a1603857ad12a41..4e9b895a1b32176327ea2bc5db353fa73c2ad80e 100644 (file)
@@ -457,7 +457,7 @@ BOOL cli_check_sign_mac(struct cli_state *cli)
        BOOL good;
 
        if (smb_len(cli->inbuf) < (smb_ss_field + 8 - 4)) {
-               DEBUG(1, ("Can't check signature on short packet! smb_len = %u\n", smb_len(cli->inbuf)));
+               DEBUG(cli->sign_info.doing_signing ? 1 : 10, ("Can't check signature on short packet! smb_len = %u\n", smb_len(cli->inbuf)));
                good = False;
        } else {
                good = cli->sign_info.check_incoming_message(cli);