mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Don't pass NULL DN to rewrite_session(), causes assertion failure
(Howard might like to check that this is the correct fix)
This commit is contained in:
parent
7cb946924e
commit
f26a0e0db0
@ -47,7 +47,7 @@ ldap_back_dn_massage(
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
switch (rewrite_session( dc->rwmap->rwm_rw, dc->ctx, dn->bv_val, dc->conn,
|
||||
switch (rewrite_session( dc->rwmap->rwm_rw, dc->ctx, (dn->bv_len ? dn->bv_val : ""), dc->conn,
|
||||
&res->bv_val )) {
|
||||
case REWRITE_REGEXEC_OK:
|
||||
if ( res->bv_val != NULL ) {
|
||||
|
Loading…
Reference in New Issue
Block a user