The tdb_fetch_uint32() function returns false on success.
This bug was referenced in samba master: 2b9a1feae7364a294b024dbeaf6a0202bbad468a
This was only an issue in master.