Skip to content
Snippets Groups Projects
Commit 03fcb652 authored by Luke Howard's avatar Luke Howard
Browse files

Fix crasher in attr_merge_normalize_one()

parent 331e6275
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,7 @@ attr_merge_normalize_one(
void *memctx
) {
struct berval nval;
struct berval *nvalp;
int rc;
if ( desc->ad_type->sat_equality->smr_normalize ) {
......@@ -242,10 +243,15 @@ attr_merge_normalize_one(
if ( rc != LDAP_SUCCESS ) {
return rc;
}
nvalp = &nval;
} else {
nvalp = NULL;
}
rc = attr_merge_one( e, desc, val, &nval );
ch_free( nval.bv_val );
rc = attr_merge_one( e, desc, val, nvalp );
if ( nvalp != NULL ) {
ch_free( nval.bv_val );
}
return rc;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment