diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-11-14 00:45:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-11-14 00:45:04 +0000 |
commit | 327e113775309e5907ec8b9ece45ade45f3e6fa3 (patch) | |
tree | 4f9a9b4dc9e769d6b2ba9c29632b4c7c8de493fc /crypto/x509v3 | |
parent | 58f3009aba0bbc1b3a744d87ab16308c36a8ffe5 (diff) |
Fix get_email: 0 is a valid return value
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_utl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 283e943e46..34ac2998de 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -491,7 +491,7 @@ static STACK *get_email(X509_NAME *name, GENERAL_NAMES *gens) i = -1; /* First supplied X509_NAME */ while((i = X509_NAME_get_index_by_NID(name, - NID_pkcs9_emailAddress, i)) > 0) { + NID_pkcs9_emailAddress, i)) >= 0) { ne = X509_NAME_get_entry(name, i); email = X509_NAME_ENTRY_get_data(ne); if(!append_ia5(&ret, email)) return NULL; |