diff options
author | Andreas Schneider <asn@samba.org> | 2016-11-13 17:40:21 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-11-16 04:10:55 +0100 |
commit | 08d1ac0e36339e97e4464f6a6724464b0a568347 (patch) | |
tree | 8cee86cdbae98fcbcaec344169f4aaa6c491479b /nsswitch/wins.c | |
parent | 233b903f3ffaae702c4d4e984ddc8a7871b47529 (diff) | |
download | samba-08d1ac0e36339e97e4464f6a6724464b0a568347.tar.gz |
nss_wins: Fix errno values for HOST_NOT_FOUND
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12269
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Nov 16 04:10:55 CET 2016 on sn-devel-144
Diffstat (limited to 'nsswitch/wins.c')
-rw-r--r-- | nsswitch/wins.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |