summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-15 23:26:10 +0200
committerVolker Lendecke <vlendec@samba.org>2011-05-16 00:30:42 +0200
commit068f847fe2682ab6e356db7b9ae6151f82605f0e (patch)
treeb2c3b1ae5ff56129f77aa8aa3c4bb9c1e47884d0 /nsswitch
parent30be9fe554af0f63e1c5fe0b3dd60b8a084cf2c8 (diff)
downloadsamba-068f847fe2682ab6e356db7b9ae6151f82605f0e.tar.gz
samba-068f847fe2682ab6e356db7b9ae6151f82605f0e.tar.bz2
samba-068f847fe2682ab6e356db7b9ae6151f82605f0e.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
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/wins.c b/nsswitch/wins.c
index e0aa2ad8f5..f5fd7a775e 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;
}