git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2163261
)
s3: Fix return check in nss_wins
author
Volker Lendecke
<vl@samba.org>
Sun, 15 May 2011 21:26:10 +0000
(23:26 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 16 May 2011 06:23:17 +0000
(08:23 +0200)
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
)
nsswitch/wins.c
patch
|
blob
|
history
diff --git
a/nsswitch/wins.c
b/nsswitch/wins.c
index e0aa2ad8f55b77c2ee8243111c52aedc090fa0e1..f5fd7a775e773e5374665bb1160ee4e585ec10f8 100644
(file)
--- 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;
}