From 25057f7fee9f270cac509c699d53e19f3d4dcd03 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 26 Mar 2002 19:45:28 +0000 Subject: Don't do a zero-length malloc (caught with dmalloc library). Jeremy. (This used to be commit 05f214202c02c0d585787cd21652edbbf338e50c) --- source3/nsswitch/winbindd_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit