projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7385543
)
Fix get_email: 0 is a valid return value
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 14 Nov 2002 00:46:11 +0000
(
00:46
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 14 Nov 2002 00:46:11 +0000
(
00:46
+0000)
crypto/x509v3/v3_utl.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/v3_utl.c
b/crypto/x509v3/v3_utl.c
index 1f0db94776d1daa455f3127751f212e07a513370..a11243db8f663f4cbe3a892992f82a52cdf63f3b 100644
(file)
--- 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;