From: Richard Levitte Date: Thu, 3 Apr 2003 20:03:23 +0000 (+0000) Subject: Don't try to free NULL values... X-Git-Tag: BEN_FIPS_TEST_1~38^2~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db598fbce2af2cc7c835b0e10253f49dda5b1b41;p=thirdparty%2Fopenssl.git Don't try to free NULL values... --- diff --git a/apps/apps.c b/apps/apps.c index bdd14dd51bd..6092c395e53 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1873,6 +1873,9 @@ int rotate_index(char *dbfile, char *new_suffix, char *old_suffix) void free_index(CA_DB *db) { - TXT_DB_free(db->db); - OPENSSL_free(db); + if (db) + { + if (db->db) TXT_DB_free(db->db); + OPENSSL_free(db); + } }