[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3868) Bug in slapi_int_init_conenction

Full_Name: Nikita Shulga
Version: CVS
OS: Linux
URL: ftp://ftp.openldap.org/incoming/nikita-shulga-050706.patch
Submission from: (NULL) (

Look at the operation allocation at servers/slapd/slapi/slapi_ops.c, line 144.
At that point, one shouldn't try to reference o_pb, since it defined as
o_hdr->oh_pb, and operation header are yet not allocated.
So, any slapi plugin, which uses slapi_search_internal,
slapi_add_entry_internal, etc, whould chrash slap-daemon.
To fix that, one should allocate Operation in simiar way, as it's done in
slap_op_alloc function in servers/slapd/operation.c.
Proper allocation is implemented in patch, attached to this report.