dbwrap: Do not rely on dbwrap_record_get_value to return a talloc object
commit2f38a77a2dfc72ccd94f5027807c9484dae54358
authorVolker Lendecke <vl@samba.org>
Thu, 29 Nov 2012 15:45:15 +0000 (29 16:45 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 29 Nov 2012 19:21:50 +0000 (29 20:21 +0100)
treea42717e410185f2f1d4ce068d62a2b32218277d6
parente271db4fd82d03b39a5872b1a3fde5e2a16e1633
dbwrap: 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
source3/lib/dbwrap/dbwrap_watch.c