1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

fixed another error found by valgrind

(This used to be commit 4368eaa523)
This commit is contained in:
Andrew Tridgell 2003-11-04 23:12:44 +00:00
parent c1b3ebb1fa
commit 18d7a41ace
2 changed files with 3 additions and 5 deletions

View File

@ -58,10 +58,6 @@ struct ndr_push_save {
uint32 offset;
};
#define NDR_BASE_MARSHALL_SIZE 1024
#define LIBNDR_FLAG_BIGENDIAN 1

View File

@ -29,6 +29,8 @@
#include "includes.h"
#define NDR_BASE_MARSHALL_SIZE 1024
/*
initialise a ndr parse structure from a data blob
*/
@ -166,7 +168,7 @@ NTSTATUS ndr_push_expand(struct ndr_push *ndr, uint32 size)
}
ndr->alloc_size = size;
ndr->data = realloc(ndr->data, ndr->alloc_size);
ndr->data = talloc_realloc(ndr->mem_ctx, ndr->data, ndr->alloc_size);
if (!ndr->data) {
return NT_STATUS_NO_MEMORY;
}