pyldb: Check whether Python object is a list
commit93d37f8bfcac58893a514349ed47c12d27149146
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 25 Aug 2023 02:21:24 +0000 (25 14:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:28 +0000 (30 02:15 +0000)
treee613ecf92a8f95515539d45baae9c00874aaf8bf
parent7dc181757c76b881ceaf1915ebb0bfbcf5aca83a
pyldb: Check whether Python object is a list

If we’re going to call PyList_Size() on an object, we should be sure
that it is a list first.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c