1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Don't do a zero-length malloc (caught with dmalloc library).

Jeremy.
(This used to be commit 05f214202c)
This commit is contained in:
Jeremy Allison 2002-03-26 19:45:28 +00:00
parent 7e686ace08
commit 25057f7fee

View File

@ -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;