From: Jeremy Allison Date: Tue, 21 Jul 2020 00:04:57 +0000 (-0700) Subject: s3: libsmb: Cleanup - use helper 'ok' bool for resolve_wins(). X-Git-Tag: talloc-2.3.2~963 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d48d60595ac19a4e0bb77ac5e204ec943f2d9d51;p=thirdparty%2Fsamba.git s3: libsmb: Cleanup - use helper 'ok' bool for resolve_wins(). No logic change. Signed-off-by: Jeremy Allison Reviewed-by: Isaac Boukris --- diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 04f27a89ca5..31a760801e3 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -2739,9 +2739,10 @@ NTSTATUS internal_resolve_name(const char *name, if (!NT_STATUS_IS_OK(status)) { continue; } - if (!convert_ss2service(return_iplist, + ok = convert_ss2service(return_iplist, ss_list, - return_count)) { + return_count); + if (!ok) { status = NT_STATUS_NO_MEMORY; goto fail; }