]> git.sur5r.net Git - openldap/commitdiff
Don't crash if no backend
authorLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 14:44:51 +0000 (14:44 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 14:44:51 +0000 (14:44 +0000)
servers/slapd/slapi/plugin.c

index 6bbd6077290ab27f65b47b3e187535b973267c33..c12e75a5ca101f239d87c33a34612d6499ce2620 100644 (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);