tdb: Fix possible crash bugs in the python tdb code.
commit7f08365a28770fdcc1bb625d8a16d11d8f15c29a
authorAndreas Schneider <asn@samba.org>
Tue, 11 Dec 2012 15:51:01 +0000 (11 16:51 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Dec 2012 12:15:00 +0000 (12 13:15 +0100)
treef5bee5aeba1c4eb19662e9a48167529c26b60cfb
parentd07a964fe25caaf796449fda9beda600990be650
tdb: Fix possible crash bugs in the python tdb code.

You can't call tdb_error() for tdb_reopen() or tdb_close(), both return
the error code of close(2) and not a TDB_ERROR!

Reviewed-by: Simo Sorce <idra@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
lib/tdb/pytdb.c