ldb: Check result of py_ldb_msg_keys()
authorJo Sutton <josutton@catalyst.net.nz>
Thu, 18 Apr 2024 00:47:28 +0000 (12:47 +1200)
committerJo Sutton <jsutton@samba.org>
Sun, 21 Apr 2024 22:10:35 +0000 (22:10 +0000)
commit5eea17a71bd69f39226a32725a0b09b60dd5308c
treee055ba75b2b0c581472f98f21f876146e4da6dc9
parent0159c48e897a7c07c399767f5ffddbb11d80ab5d
ldb: Check result of py_ldb_msg_keys()

Passing NULL into PyObject_GetIter() can cause a segmentation fault.

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