1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

smbd: Disable use of smb_fn_name without SMB1 in error.c

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-03-21 13:50:08 -06:00 committed by Jeremy Allison
parent e081b25e07
commit b70c88fb0b

View File

@ -78,7 +78,11 @@ void error_packet_set(char *outbuf, uint8_t eclass, uint32_t ecode, NTSTATUS nts
DEBUG(3,("NT error packet at %s(%d) cmd=%d (%s) %s\n",
file, line,
(int)CVAL(outbuf,smb_com),
#if defined(WITH_SMB1SERVER)
smb_fn_name(CVAL(outbuf,smb_com)),
#else
"",
#endif
nt_errstr(ntstatus)));
} else {
/* We're returning a DOS error only,
@ -99,7 +103,11 @@ void error_packet_set(char *outbuf, uint8_t eclass, uint32_t ecode, NTSTATUS nts
DEBUG(3,("DOS error packet at %s(%d) cmd=%d (%s) eclass=%d ecode=%d\n",
file, line,
(int)CVAL(outbuf,smb_com),
#if defined(WITH_SMB1SERVER)
smb_fn_name(CVAL(outbuf,smb_com)),
#else
"",
#endif
eclass,
ecode));
}