[Date Prev][Date Next]
Re: slapd segfaults (ITS#468)
At 10:48 PM 3/1/00 GMT, firstname.lastname@example.org wrote:
>Full_Name: ian logan
>OS: redhat 6.1
>Submission from: (NULL) (18.104.22.168)
>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.