]> git.sur5r.net Git - openldap/commitdiff
ITS#3326: fix slaptest shutdown
authorKurt Zeilenga <kurt@openldap.org>
Fri, 10 Sep 2004 17:15:33 +0000 (17:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 10 Sep 2004 17:15:33 +0000 (17:15 +0000)
servers/slapd/slapcommon.c

index 8e151450751e904211cd8e20f8363aa410500c0f..be318ed93ba61f3295635d1e04ea1785b43c90aa 100644 (file)
@@ -532,7 +532,7 @@ startup:;
 
 void slap_tool_destroy( void )
 {
-       if ( !dryrun ) {
+       if ( !dryrun && be != NULL ) {
                slap_shutdown( be );
        }
        slap_destroy();