pytdb: Check for errors parsing strings into TDB_DATA
commita8e88332a394f4a4c3e43b496738008fba39d39f
authorAndrew Bartlett <abartlet@samba.org>
Mon, 16 Jul 2012 09:03:40 +0000 (16 19:03 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 16 Jul 2012 09:58:21 +0000 (16 11:58 +0200)
tree21661b2280edb723b8e500f695c5387c0f900e77
parentdff29e4aee5f6adda32e5a0905d3c46e810feb27
pytdb: Check for errors parsing strings into TDB_DATA

The call to PyStringAsString() can raise an exception, and we
want to return that rather than following a NULL pointer later.

Andrew Bartlett
lib/tdb/pytdb.c