]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nss_wins: Fix errno values for HOST_NOT_FOUND
authorAndreas Schneider <asn@samba.org>
Sun, 13 Nov 2016 16:40:21 +0000 (17:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 2 Jan 2017 10:56:52 +0000 (11:56 +0100)
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-4-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-4-test): Wed Nov 30 15:50:43 CET 2016 on sn-devel-144

nsswitch/wins.c

index dccb6dd90ed9dbde44b984ed2d99254442aa8298..19d3c5b4fccb206973773dd1dc0e11adf584ed28 100644 (file)
@@ -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;
        }