Commit 75358e45 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Import alias "don't return null entry" fix from devel

parent ef456f1e
......@@ -121,7 +121,7 @@ char *derefDN ( Backend *be,
Debug( LDAP_DEBUG_TRACE,
"<= dereferencing dn %s\n",
"<= dereferencing dn: \"%s\"\n",
dn, 0, 0 );
newDN = ch_strdup ( dn );
......@@ -203,8 +203,10 @@ char *derefDN ( Backend *be,
}
}
/* free reader lock */
cache_return_entry_r(&li->li_cache, eMatched);
if(eMatched != NULL) {
/* free reader lock */
cache_return_entry_r(&li->li_cache, eMatched);
}
/*
* the final part of the DN might be an alias
......
Markdown is supported
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