]> git.sur5r.net Git - openldap/commitdiff
don't open if no configuration is present (ITS#6279)
authorPierangelo Masarati <ando@openldap.org>
Tue, 8 Sep 2009 08:15:08 +0000 (08:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 8 Sep 2009 08:15:08 +0000 (08:15 +0000)
contrib/slapd-modules/autogroup/autogroup.c

index f7b46b8b52e8d5c03d72a949be5674dffaa34dff..64e4392b7a8876bee2834639617eb240c017358c 100644 (file)
@@ -1450,6 +1450,10 @@ autogroup_db_open(
 
        Debug( LDAP_DEBUG_TRACE, "==> autogroup_db_open\n", 0, 0, 0);
 
+       if ( agi == NULL ) {
+               return 0;
+       }
+
        connection_fake_init( &conn, &opbuf, thrctx );
        op = &opbuf.ob_op;