]> git.sur5r.net Git - openldap/commitdiff
oi_list might be null if overlay initialization failed for any reason
authorPierangelo Masarati <ando@openldap.org>
Fri, 18 Aug 2006 10:12:21 +0000 (10:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 18 Aug 2006 10:12:21 +0000 (10:12 +0000)
servers/slapd/backover.c

index f14b327019ee72e5a25a283346ff22911a15a439..3ffd18828508066aff7add1f0da3246b26808a82 100644 (file)
@@ -210,10 +210,13 @@ over_db_destroy(
 
        rc = over_db_func( be, db_destroy );
 
-       for (next = on->on_next; on; on=next) {
-               next = on->on_next;
-               free( on );
+       if ( on ) {
+               for (next = on->on_next; on; on=next) {
+                       next = on->on_next;
+                       free( on );
+               }
        }
+
        free( oi );
        return rc;
 }