Skip to content
Snippets Groups Projects
Commit f516e349 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#1681 - detect bad filter in slap_parseURI() - from Hallvard Furuseth

parent c22f10f4
No related branches found
No related tags found
No related merge requests found
......@@ -84,12 +84,16 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
/* Grab the filter */
if ( ludp->lud_filter ) {
*filter = str2filter( ludp->lud_filter );
if ( *filter == NULL )
rc = LDAP_PROTOCOL_ERROR;
}
/* Grab the searchbase */
bv.bv_val = ludp->lud_dn;
bv.bv_len = strlen( bv.bv_val );
rc = dnNormalize2( NULL, &bv, searchbase );
if ( rc == LDAP_URL_SUCCESS ) {
bv.bv_val = ludp->lud_dn;
bv.bv_len = strlen( bv.bv_val );
rc = dnNormalize2( NULL, &bv, searchbase );
}
ldap_free_urldesc( ludp );
......
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