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

vfs: Remove an unnecessary if statement

get_local_machine_name() already does exactly this

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-11-30 15:14:08 +01:00 committed by Jeremy Allison
parent 0b070db63b
commit 06408707a2

View File

@ -956,10 +956,6 @@ int virusfilter_shell_set_conn_env(
fstring pidstr;
int ret;
if (local_machine_name == NULL || *local_machine_name == '\0') {
local_machine_name = lp_netbios_name();
}
server_addr_p = tsocket_address_inet_addr_string(
conn->sconn->local_address, talloc_tos());