mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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> (cherry picked from commit 08d1ac0e36339e97e4464f6a6724464b0a568347) Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Wed Nov 30 16:25:05 CET 2016 on sn-devel-144
This commit is contained in:
parent
ee07db353f
commit
cbf54e0290
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user