diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-03-01 13:33:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-03-01 13:33:53 +0000 |
commit | 95d334f2db25569be7817563fcec1af6cd665236 (patch) | |
tree | 748452f968a3f3dc37747e99dbbdef929992d515 /crypto/x509v3/v3_alt.c | |
parent | 98486a93109a9e01183f11fb6f8090941e422068 (diff) |
Fix bug in copy_email() which would not
find emailAddress at start of subject name.
Diffstat (limited to 'crypto/x509v3/v3_alt.c')
-rw-r--r-- | crypto/x509v3/v3_alt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_alt.c b/crypto/x509v3/v3_alt.c index 733919f250..94bebcd448 100644 --- a/crypto/x509v3/v3_alt.c +++ b/crypto/x509v3/v3_alt.c @@ -270,7 +270,7 @@ static int copy_email(X509V3_CTX *ctx, STACK_OF(GENERAL_NAME) *gens) /* Now add any email address(es) to STACK */ i = -1; while((i = X509_NAME_get_index_by_NID(nm, - NID_pkcs9_emailAddress, i)) > 0) { + NID_pkcs9_emailAddress, i)) >= 0) { ne = X509_NAME_get_entry(nm, i); email = M_ASN1_IA5STRING_dup(X509_NAME_ENTRY_get_data(ne)); if(!email || !(gen = GENERAL_NAME_new())) { |