From: Pierangelo Masarati Date: Fri, 18 Aug 2006 10:12:21 +0000 (+0000) Subject: oi_list might be null if overlay initialization failed for any reason X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~2^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2947c098ced6086c0ac0fa9d2b9e1a0101fe6a50;p=openldap oi_list might be null if overlay initialization failed for any reason --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index f14b327019..3ffd188285 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -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; }