ldb_wrap.c: fix TDB2-incompatible API usage.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 22:55:50 +0000 (09:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 22:55:50 +0000 (09:25 +1030)
commitae62d46a9fcfee9db177ddb3d0f1f2c28c889a35
treeb477ab7c6636b224e6e15f13f3435e5317971047
parentefbf52b4fe62eeed085961d7e2689b869bae63dc
ldb_wrap.c: fix TDB2-incompatible API usage.

Auditing revealed one place still expecting a -1 return on failure:
tdb2 returns the (negative) errcode directly, so the portable way to
do this is to check for != 0.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ldb-samba/ldb_wrap.c