Skip to content
Snippets Groups Projects
Commit ad6882ac authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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)
parent 535cc1db
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
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