diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-01-05 23:30:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-01-05 23:30:59 +0000 |
commit | b0e4827b9750edd358230890fdc671f378da9626 (patch) | |
tree | 6e05dbaff4f61076ade1a9c39cc00e92f9c26206 /source3/libsmb/clispnego.c | |
parent | ca0ccee23f9fd57982d8934e957f0c71a919614b (diff) | |
download | samba-b0e4827b9750edd358230890fdc671f378da9626.tar.gz samba-b0e4827b9750edd358230890fdc671f378da9626.tar.xz samba-b0e4827b9750edd358230890fdc671f378da9626.zip |
simple fix for creating blank data blobs
(This used to be commit 08bb2dfec2ca0282e9268d09da2b966d3bdf493a)
Diffstat (limited to 'source3/libsmb/clispnego.c')
-rw-r--r-- | source3/libsmb/clispnego.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index bc3873bf186..035b47b4171 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/libsmb/clispnego.c @@ -486,9 +486,7 @@ BOOL msrpc_gen(DATA_BLOB *blob, va_end(ap); /* allocate the space, then scan the format again to fill in the values */ - blob->data = malloc(head_size + data_size); - blob->length = head_size + data_size; - if (!blob->data) return False; + *blob = data_blob(NULL, head_size + data_size); head_ofs = 0; data_ofs = head_size; |