diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-11-14 03:46:11 +0300 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-11-14 03:46:11 +0300 |
commit | 65caee44ffeeb80c6adcc0d6484ce25d3cf66597 (patch) | |
tree | 77da9f96d879fc71cd16185ebdf05751326b8e2c /crypto | |
parent | 738554331b1f61defa11e9ee49c7c63226b9f60a (diff) |
Fix get_email: 0 is a valid return value
Diffstat (limited to 'crypto')
-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 1f0db94776..a11243db8f 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -492,7 +492,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; |