From 08d1ac0e36339e97e4464f6a6724464b0a568347 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 13 Nov 2016 17:40:21 +0100 Subject: nss_wins: Fix errno values for HOST_NOT_FOUND BUG: https://bugzilla.samba.org/show_bug.cgi?id=12269 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Nov 16 04:10:55 CET 2016 on sn-devel-144 --- nsswitch/wins.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nsswitch/wins.c') diff --git a/nsswitch/wins.c b/nsswitch/wins.c index dccb6dd90ed..19d3c5b4fcc 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -260,8 +260,7 @@ _nss_wins_gethostbyname_r(const char *hostname, ip = lookup_byname_backend(name); if (ip == NULL) { - *errnop = EINVAL; - *h_errnop = NETDB_INTERNAL; + *h_errnop = HOST_NOT_FOUND; nss_status = NSS_STATUS_NOTFOUND; goto out; } -- cgit v1.2.1