Don't crash if no backend

This commit is contained in:
Luke Howard 2003-01-21 14:44:51 +00:00
parent 8de6186e54
commit 8dd11efd39

View file

@ -173,7 +173,14 @@ getAllPluginFuncs(
int numPB = 0;
int rc = LDAP_SUCCESS;
assert( be );
if ( be == NULL ) {
/*
* No plugins supported if no backend (yet)
*/
rc = LDAP_OTHER;
goto done;
}
assert( ppFuncPtrs );
pCurrentPB = (Slapi_PBlock *)(be->be_pb);