s3: Fix the talloc hierarchy in shadow_copy2_connectpath
commit5d734a32d9719d05f1dc53b3f61535778a7cdbf3
authorVolker Lendecke <vl@samba.org>
Mon, 14 Mar 2011 17:35:36 +0000 (14 18:35 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 17 Mar 2011 14:07:20 +0000 (17 15:07 +0100)
tree3909687deb6bbe99bc632845948954962f8d8844
parentfca681fede6d4b8b28490f58b5c3727f6c699e1a
s3: Fix the talloc hierarchy in shadow_copy2_connectpath

We have to return on talloc_tos() because we don't have a mem_ctx given to us.
So we have to create a separate temporary talloc context.

Fix bug #8011 (memory corruption in shadow_copy2).

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 19:21:11 CET 2011 on sn-devel-104
(cherry picked from commit 746b299ec1b11ea1e70c130b69a9a379ec478750)
source3/modules/vfs_shadow_copy2.c