mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-11 09:50:26 -04:00
Fixed an issue in extract_x509_field_ssl where the extraction
would fail on the first field of the subject name, such as the common name in: /CN=foo/emailAddress=foo@bar.com git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2980 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
parent
1e0b714162
commit
9712c4c6a0
1 changed files with 1 additions and 1 deletions
2
ssl.c
2
ssl.c
|
|
@ -401,7 +401,7 @@ extract_x509_field_ssl (X509_NAME *x509, const char *field_name, char *out, int
|
|||
do {
|
||||
lastpos = tmp;
|
||||
tmp = X509_NAME_get_index_by_NID(x509, nid, lastpos);
|
||||
} while (tmp > 0);
|
||||
} while (tmp > -1);
|
||||
|
||||
/* Nothing found */
|
||||
if (lastpos == -1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue