diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-15 23:26:10 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-05-17 09:16:55 +0200 |
commit | 60f27eec4bf22233eb4318d02d5ac4ca46a1f653 (patch) | |
tree | 1c36de862510b958c7c7e845c11e1aacb458aff7 /nsswitch | |
parent | 0749f057417f286300c074223e37288ffbc5678c (diff) | |
download | samba-60f27eec4bf22233eb4318d02d5ac4ca46a1f653.tar.gz samba-60f27eec4bf22233eb4318d02d5ac4ca46a1f653.tar.xz samba-60f27eec4bf22233eb4318d02d5ac4ca46a1f653.zip |
s3: Fix return check in nss_wins
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 16 00:30:42 CEST 2011 on sn-devel-104
(cherry picked from commit 068f847fe2682ab6e356db7b9ae6151f82605f0e)
(cherry picked from commit 5ad20f61f87618386f343c2aa8c3f3ffe2fefb03)
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/wins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/wins.c b/nsswitch/wins.c index e0aa2ad8f55..f5fd7a775e7 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -99,7 +99,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) in_addr_to_sockaddr_storage(&ss, *bcast); status = name_query(name, 0x00, True, True, &ss, NULL, &pss, count, NULL); - if (pss) { + if (NT_STATUS_IS_OK(status) && (*count > 0)) { if ((ret = SMB_MALLOC_P(struct in_addr)) == NULL) { return NULL; } |