Skip to content
Snippets Groups Projects
Commit ecd99b83 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

set "matched" as appropriate (ITS#3942)

parent 88e89bf4
Branches
Tags
No related merge requests found
......@@ -394,6 +394,15 @@ fail:;
BER_BVZERO( &rs->sr_ref[ cnt ] );
}
if ( match.bv_val != NULL ) {
if ( match.bv_val[ 0 ] == '\0' ) {
LDAP_FREE( match.bv_val );
BER_BVZERO( &match );
} else {
match.bv_len = strlen( match.bv_val );
}
}
/* cleanup */
if ( references ) {
ldap_value_free( references );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment