[Date Prev][Date Next]
slapd segfaults (ITS#468)
Full_Name: ian logan
OS: redhat 6.1
Submission from: (NULL) (184.108.40.206)
Under Redhat 6.1 slapd (built from last nights sources) segfaults trying to
a constant string. The seg fault was triggered by doing a simple search like
servers/slapd/backend.c backend_operational() (line 644) has
a->type = "subschemasubentry";
This is later free'd in send_search_entry (result.c line 846), which ends up
attr_free which says free(a->a-type) causing the segfault.
Changing servers/slapd/backend.c (line 644) to read
a->type = ch_strdup("subschemasubentry");
has fixed this for me.