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

(ITS#3784) slapd segfault if checkpoint is specified before suffix in back-[hb]db

Full_Name: Sebastien Georget
Version: 2.3.4
OS: linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

The following configuration creates a segfault during its parsing by slapd :
database        [bh]db
checkpoint      1024 10
suffix          "dc=mydomain,dc=com"

This come from :
servers/slapd/back-bdb/config.c:493: LDAP_XSTRING(bdb_checkpoint),
c->be->be_suffix[0].bv_val );

If other options requires the suffix definition, it could help to 'force' suffix
to be the first option. An alternative would be to check for suffix definition
in the checkpoint initialization code.