s4/smbstreams: Fix memory use after free.
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Sat, 5 Dec 2009 23:59:42 +0000 (01:59 +0200)
committerAndrew Tridgell <tridge@samba.org>
Tue, 8 Dec 2009 01:39:11 +0000 (12:39 +1100)
commitf1d9382b18fbf4b9428759cdeea3894b7871e236
treedb4052348a29e3b23c8c63a6c9bd5843053d49ea
parentbf7cc3262e3cbd72a3603d3c648fccfe7ce9829f
s4/smbstreams: Fix memory use after free.

The bug is that sometimes 'streams' is parent for 'new_name'.
With this said, 'new_name' must be dupped before 'streams'
pointer is freed.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/ntvfs/posix/pvfs_streams.c