Fix email address delete code.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 6 Nov 2001 01:44:21 +0000 (01:44 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 6 Nov 2001 01:44:21 +0000 (01:44 +0000)
apps/ca.c

index 107c4d2b981c78798c8553ca5ba66c8fbf537b29..7a168aa9d3bdc0e1ddb3b1618dd230ce587ed585 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2063,7 +2063,7 @@ again2:
                        goto err;
                        }
                while((i = X509_NAME_get_index_by_NID(dn_subject,
-                                       NID_pkcs9_emailAddress, -1) >= 0))
+                                       NID_pkcs9_emailAddress, -1)) >= 0)
                        {
                        tmpne = X509_NAME_get_entry(dn_subject, i);
                        X509_NAME_delete_entry(dn_subject, i);