summaryrefslogtreecommitdiffstats
path: root/lib/talloc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-05-17 08:19:04 +0200
committerStefan Metzmacher <metze@samba.org>2011-05-17 08:22:23 +0200
commitc281f2fc1a359d0d3b91b94438f11bb7c88170b5 (patch)
tree306460bd2563f904ab4bad8d5cec2abfe38d5c37 /lib/talloc
parent7102105c8954627dc30a851327cf2642ac0783d5 (diff)
downloadsamba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.tar.gz
samba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.tar.xz
samba-c281f2fc1a359d0d3b91b94438f11bb7c88170b5.zip
talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()
metze
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/talloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index f3ed9c85672..95534052bc8 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -1512,6 +1512,7 @@ _PUBLIC_ void *_talloc_realloc(const void *context, void *ptr, size_t size, cons
memmove(pool_tc->pool, tc, old_used);
new_ptr = pool_tc->pool;
+ tc = (struct talloc_chunk *)new_ptr;
TC_UNDEFINE_GROW_CHUNK(tc, size);
/*