Skip to content

Commit

Permalink
s3: Fix return check in nss_wins
Browse files Browse the repository at this point in the history
Autobuild-User: Volker Lendecke <[email protected]>
Autobuild-Date: Mon May 16 00:30:42 CEST 2011 on sn-devel-104
  • Loading branch information
vlendec committed May 15, 2011
1 parent 30be9fe commit 068f847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsswitch/wins.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 068f847

Please sign in to comment.