Accept NULL in *_free.
[openssl.git] / crypto / txt_db / txt_db.c
index e4259d9..dccb2b9 100644 (file)
@@ -356,6 +356,9 @@ TXT_DB *db;
        int i,n;
        char **p,*max;
 
+       if(db == NULL)
+           return;
+
        if (db->index != NULL)
                {
                for (i=db->num_fields-1; i>=0; i--)