s3: Fix the talloc hierarchy in shadow_copy2_connectpath
commit059ee6313fd28e965f62b0ec3ebf583d8aa06566
authorVolker Lendecke <vl@samba.org>
Mon, 14 Mar 2011 17:35:36 +0000 (14 18:35 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 14 Mar 2011 19:10:27 +0000 (14 20:10 +0100)
tree1127710959adafc7e11f7b205b52aa255fa8091e
parent4421c6f45c260283adead0fd47d14e08ab904908
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.

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