ldb_tdb: Map TDB error codes into LDB error codes in ltdb_lock_read()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2017 02:04:51 +0000 (14:04 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 20 Sep 2017 00:25:30 +0000 (02:25 +0200)
commit75e88e40a2c66668a95f00e151efe18c365580fd
treefddaecf76ee83a21f203cb8fdfe4013fd29d4d0b
parent24996c60aafd36d10317876c702b7d4f759e405c
ldb_tdb: Map TDB error codes into LDB error codes in ltdb_lock_read()

The ltdb_lock_read() routine did not return an LDB error code, but -1.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13033

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c