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

Re: commit: ldap/libraries/libldif line64.c



kurt@OpenLDAP.org writes:
> Log Message:
> ITS#2218: fix empty values w/ spaces

More problems with ldif_parse_line() -> NULL value:
The following 'rootDSE' file (in slapd.conf) causes
'slapd -d 1' to segfault in a log message:

	dn:<

ldif_parse_line() returns success with value=NULL.
slapd handles that in some of the code, but not all.

Unless someone protests, I'll make ldif_parse_line() fail in this case,
only return success if value and type are non-NULL, and remove code in
slapd which handles NULL value after success.

-- 
Hallvard