From 8dd11efd394094d68a00bf16aacdc2899f15b75e Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 21 Jan 2003 14:44:51 +0000 Subject: [PATCH] Don't crash if no backend --- servers/slapd/slapi/plugin.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.5