mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Add additional be_isroot() checks to protect against empty
root and client ndns. (the existing backend protections *should* be good enough, but one cannot be too safe)
This commit is contained in:
parent
535cc1dbbc
commit
ad6882acac
1 changed files with 5 additions and 1 deletions
|
|
@ -481,7 +481,11 @@ be_isroot( Backend *be, const char *ndn )
|
|||
{
|
||||
int rc;
|
||||
|
||||
if ( ndn == NULL || be->be_root_ndn == NULL ) {
|
||||
if ( ndn == NULL || *ndn == '\0' ) {
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
if ( be->be_root_ndn == NULL || *be->be_root_ndn == '\0' ) {
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue