]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/txt_db/txt_db.c
Accept NULL in *_free.
[thirdparty/openssl.git] / crypto / txt_db / txt_db.c
index e4259d976853c61f27f17300a6001e9fa50e2558..dccb2b9513e3f1ee7970513a98ed98e0a9e1d54f 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--)