summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-26 19:45:28 +0000
committerJeremy Allison <jra@samba.org>2002-03-26 19:45:28 +0000
commit25057f7fee9f270cac509c699d53e19f3d4dcd03 (patch)
tree0cb21d33b5382c55a8a809d1b24ddadea0729c84
parent7e686ace08269b33a6367719324580776733bd65 (diff)
downloadsamba-25057f7fee9f270cac509c699d53e19f3d4dcd03.tar.gz
samba-25057f7fee9f270cac509c699d53e19f3d4dcd03.tar.bz2
samba-25057f7fee9f270cac509c699d53e19f3d4dcd03.zip
Don't do a zero-length malloc (caught with dmalloc library).
Jeremy. (This used to be commit 05f214202c02c0d585787cd21652edbbf338e50c)
-rw-r--r--source3/nsswitch/winbindd_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index c62ce54b59..4ef57513bb 100644
--- a/source3/nsswitch/winbindd_group.c
+++ b/source3/nsswitch/winbindd_group.c
@@ -150,7 +150,7 @@ static BOOL fill_grent_mem(struct winbindd_domain *domain,
/* Allocate buffer */
- if (!buf) {
+ if (!buf && buf_len != 0) {
if (!(buf = malloc(buf_len))) {
DEBUG(1, ("out of memory\n"));
result = False;