Yet more pissing about to get PEM built at the right moment.
[openssl.git] / crypto / txt_db / txt_db.c
index 4e59fa0..dccb2b9 100644 (file)
@@ -66,7 +66,7 @@
 #undef BUFSIZE
 #define BUFSIZE        512
 
 #undef BUFSIZE
 #define BUFSIZE        512
 
-char *TXT_DB_version="TXT_DB part of SSLeay 0.9.1c 22-Dec-1998";
+char *TXT_DB_version="TXT_DB part of OpenSSL 0.9.2 31-Dec-1998";
 
 TXT_DB *TXT_DB_read(in,num)
 BIO *in;
 
 TXT_DB *TXT_DB_read(in,num)
 BIO *in;
@@ -356,6 +356,9 @@ TXT_DB *db;
        int i,n;
        char **p,*max;
 
        int i,n;
        char **p,*max;
 
+       if(db == NULL)
+           return;
+
        if (db->index != NULL)
                {
                for (i=db->num_fields-1; i>=0; i--)
        if (db->index != NULL)
                {
                for (i=db->num_fields-1; i>=0; i--)