mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
torture_ldap_sort: avoid segfault
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
5d6a67e9de
commit
c1b68fa0b8
@ -99,6 +99,7 @@ bool torture_ldap_sort(struct torture_context *torture)
|
||||
for (i=0;i<ctx->count;i++) {
|
||||
msg = ctx->msgs[i];
|
||||
elem = ldb_msg_find_element(msg,"cn");
|
||||
torture_assert_not_null(torture, elem, "msg lacks CN");
|
||||
cur = elem->values;
|
||||
torture_comment(torture, "cn: %s\n",cur->data);
|
||||
if (prev != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user