git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6315ea8
)
merged fix for tdb_unpack from 2_2
author
Andrew Tridgell
<tridge@samba.org>
Wed, 30 May 2001 06:23:05 +0000
(06:23 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 30 May 2001 06:23:05 +0000
(06:23 +0000)
(This used to be commit
200b682e9bbe79897343422f7c870382ed6de40a
)
source3/tdb/tdbutil.c
patch
|
blob
|
history
diff --git
a/source3/tdb/tdbutil.c
b/source3/tdb/tdbutil.c
index 409397366a920df0873d55717e463a0e132a45fc..0a2f1f84d458a6e438e5d53d7d83db1a6a8d0822 100644
(file)
--- a/
source3/tdb/tdbutil.c
+++ b/
source3/tdb/tdbutil.c
@@
-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);