dbwrap_tdb: handle tdb2 return values properly.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:28 +0000 (08:13 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:28 +0000 (08:13 +0930)
commit5e0f62c3c20250a7fdb4be11f08bd407b11a204b
treeda40fa8a8cb94dbbd5c9b5b4843f15326d06010b
parent2d7c85a971b2766e5ad6ce3664506deba87b53e1
dbwrap_tdb: handle tdb2 return values properly.

TDB2 versions of tdb_parse_record etc return an error code, not -1.
Turn those into -1/0 in dbwrap_tdb to insulate the rest of the code
from that change.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/lib/dbwrap/dbwrap_tdb.c