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:
Kurt Zeilenga 2000-03-15 19:42:03 +00:00
parent 535cc1dbbc
commit ad6882acac

View file

@ -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 );
}