libnet dssync: fix memory allocation for error/result messages.
authorMichael Adam <obnox@samba.org>
Fri, 1 Aug 2008 15:10:59 +0000 (17:10 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 1 Aug 2008 15:10:59 +0000 (17:10 +0200)
commit84ee630ee973189ca9f2ce2afe4987998aaeccc7
tree2e199026f65048899bec2a542cec446e8ee0e927
parent4c6e9662b8360692f8ee8c36287ec8aa0b9d831a
libnet dssync: fix memory allocation for error/result messages.

Use the libnet_dssync_context as a talloc context for the
result_message and error_message string members.
Using the passed in mem_ctx makes the implicit assumption
that mem_ctx is at least as long-lived as the libnet_dssync_context,
which is wrong.

Michael
(This used to be commit 635baf6b7d2a1822ceb48aa4bc47569ef19d51cc)
source3/libnet/libnet_dssync.c
source3/libnet/libnet_dssync_keytab.c