diff options
author | Richard Levitte <levitte@openssl.org> | 2003-04-03 20:03:23 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-04-03 20:03:23 +0000 |
commit | db598fbce2af2cc7c835b0e10253f49dda5b1b41 (patch) | |
tree | b6ab82cc1e89b71033ecb27f58ac7eae67cfd11e | |
parent | 8382ec5d372c273aef65a824338b3242c796051a (diff) |
Don't try to free NULL values...
-rw-r--r-- | apps/apps.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/apps.c b/apps/apps.c index bdd14dd51b..6092c395e5 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); + } } |