From: Luke Howard Date: Tue, 21 Jan 2003 14:44:51 +0000 (+0000) Subject: Don't crash if no backend X-Git-Tag: NO_SLAP_OP_BLOCKS~560 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8dd11efd394094d68a00bf16aacdc2899f15b75e;p=openldap Don't crash if no backend --- diff --git a/servers/slapd/slapi/plugin.c b/servers/slapd/slapi/plugin.c index 6bbd607729..c12e75a5ca 100644 --- a/servers/slapd/slapi/plugin.c +++ b/servers/slapd/slapi/plugin.c @@ -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);