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 107c4d2..7a168aa 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);