Commit 1d067831 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Setting UFN prefix to NULL should clear prefix, not cause crash

parent 0bbeef60
......@@ -7,6 +7,7 @@ Changes included in OpenLDAP 1.2.11 Release Engineering
Fix slurpd to properly restart in oneshot mode, and to report a
non-zero number of items to process with only one replica.
Fix strdup use in libldap/request.c
Fix NULL prefix bug in libldap/ufn.c
Changes included in OpenLDAP 1.2.10
CVS Tag: OPENLDAP_REL_ENG_1_2_10
......
......@@ -476,7 +476,8 @@ ldap_ufn_setprefix( LDAP *ld, char *prefix )
if ( ld->ld_ufnprefix != NULL )
free( ld->ld_ufnprefix );
ld->ld_ufnprefix = ldap_strdup( prefix );
ld->ld_ufnprefix = prefix == NULL
? NULL : ldap_strdup( prefix );
}
int
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment