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

s3: libsmb: Cleanup - use helper 'ok' bool for internal_resolve_name().

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:27:13 -07:00 committed by Isaac Boukris
parent 4abcb3001e
commit 1499fd8a2e

View File

@ -2613,8 +2613,9 @@ NTSTATUS internal_resolve_name(const char *name,
(*return_iplist)->port = PORT_NONE;
/* if it's in the form of an IP address then get the lib to interpret it */
if (!interpret_string_addr(&(*return_iplist)->ss,
name, AI_NUMERICHOST)) {
ok = interpret_string_addr(&(*return_iplist)->ss,
name, AI_NUMERICHOST);
if (!ok) {
DEBUG(1,("internal_resolve_name: interpret_string_addr "
"failed on %s\n",
name));