1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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

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 17:00:35 -07:00 committed by Isaac Boukris
parent 02f72478e2
commit ba656a7950

View File

@ -2733,15 +2733,16 @@ NTSTATUS internal_resolve_name(const char *name,
talloc_tos(),
&ss_list,
return_count);
if (NT_STATUS_IS_OK(status)) {
if (!convert_ss2service(return_iplist,
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
goto fail;
}
goto done;
if (!NT_STATUS_IS_OK(status)) {
continue;
}
if (!convert_ss2service(return_iplist,
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
goto fail;
}
goto done;
} else if (strequal(tok, "bcast")) {
struct sockaddr_storage *ss_list = NULL;
status = name_resolve_bcast(