lib: Simplify tdb_fetch_int32()
commit604c16453c7cee96e23cec52cbc061a15e78b703
authorVolker Lendecke <vl@samba.org>
Mon, 12 Apr 2021 08:37:11 +0000 (12 08:37 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2021 18:18:31 +0000 (19 18:18 +0000)
treed526214d3acdf67925aec17a1518ef2c9e59b2a6
parent7f0a87990e5e98a28ce677cc91fe339ca4e301c8
lib: Simplify tdb_fetch_int32()

With tdb_parse_record we don't need malloc/SAFE_FREE.

The semantics are a bit different from tdb_parse_uint32: We just return
-1 on error, but this could be overloaded with a valid -1 record value.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util_tdb.c