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:
parent
e081b25e07
commit
b70c88fb0b
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user