mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
merged fix for tdb_unpack from 2_2
(This used to be commit 200b682e9bbe79897343422f7c870382ed6de40a)
This commit is contained in:
parent
6315ea80fc
commit
ad7c3ea0f0
@ -292,7 +292,10 @@ int tdb_unpack(char *buf, int bufsize, char *fmt, ...)
|
||||
len = 4;
|
||||
if (bufsize < len) goto no_space;
|
||||
*i = IVAL(buf, 0);
|
||||
if (! *i) break;
|
||||
if (! *i) {
|
||||
*b = NULL;
|
||||
break;
|
||||
}
|
||||
len += *i;
|
||||
if (bufsize < len) goto no_space;
|
||||
*b = (char *)malloc(*i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user