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

s3: libsmb: Cleanup - change to early continue in internal_resolve_name() for resolve_lmhosts_file_as_sockaddr().

No logic change.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
Jeremy Allison 2020-07-20 16:58:46 -07:00 committed by Isaac Boukris
parent 139d7a73c0
commit 114fe82343

View File

@ -2713,15 +2713,16 @@ NTSTATUS internal_resolve_name(const char *name,
status = resolve_lmhosts_file_as_sockaddr( status = resolve_lmhosts_file_as_sockaddr(
get_dyn_LMHOSTSFILE(), name, name_type, get_dyn_LMHOSTSFILE(), name, name_type,
talloc_tos(), &ss_list, return_count); talloc_tos(), &ss_list, return_count);
if (NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {
if (!convert_ss2service(return_iplist, continue;
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
goto fail;
}
goto done;
} }
if (!convert_ss2service(return_iplist,
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
goto fail;
}
goto done;
} else if (strequal(tok, "wins")) { } else if (strequal(tok, "wins")) {
/* don't resolve 1D via WINS */ /* don't resolve 1D via WINS */
struct sockaddr_storage *ss_list = NULL; struct sockaddr_storage *ss_list = NULL;