1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: lib: If we're reporting getaddrinfo fail, print the name we were looking up in the same debug.

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Richard Sharpe 2021-05-12 11:46:24 -07:00 committed by Jeremy Allison
parent 4d54b602bd
commit 401ae83d5e

View File

@ -1549,8 +1549,9 @@ bool name_to_fqdn(fstring fqdn, const char *name)
s = getaddrinfo(name, NULL, &hints, &result);
if (s != 0) {
DEBUG(1, ("getaddrinfo: %s\n", gai_strerror(s)));
DEBUG(10,("name_to_fqdn: lookup for %s failed.\n", name));
DBG_WARNING("getaddrinfo lookup for %s failed: %s\n",
name,
gai_strerror(s));
fstrcpy(fqdn, name);
return false;
}