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:
parent
7e686ace08
commit
25057f7fee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user