From a9d9b07167aab54c88a10717b2e1aa3e994c5645 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 19 Mar 2004 00:20:12 +0000 Subject: [PATCH] Merge from HEAD: 2003-04-03 22:03 levitte * apps/apps.c (1.70): Don't try to free NULL values... Notified by "Steven Reddie" --- apps/apps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/apps.c b/apps/apps.c index 93a665e788..1a7ca62236 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1970,6 +1970,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); + } } -- 2.25.1