dbwrap: Fix bug 9440: Do not rely on dbwrap_record_get_value to return a talloc object
commit5b1aeb6703f941a240cf7e7b58375d3b9c380b4a
authorVolker Lendecke <vl@samba.org>
Thu, 29 Nov 2012 15:45:15 +0000 (29 16:45 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 08:31:12 +0000 (3 09:31 +0100)
treef4c83206002b349dc71acfd6b4599f3425fc66d6
parent121157ac12db410f3283bc1cd4269328704002fa
dbwrap: Fix bug 9440: Do not rely on dbwrap_record_get_value to return a talloc object

db_tdb_fetch_locked returns the value as part of a larger talloc object
that also contains the key.  This means we can not realloc, but have to
freshly alloc.

Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Nov 29 20:21:51 CET 2012 on sn-devel-104
(cherry picked from commit 2f38a77a2dfc72ccd94f5027807c9484dae54358)
source3/lib/dbwrap/dbwrap_watch.c