artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2892b21
)
X509_NAME_get_text_by_NID() returns -1 on error so the type
author
jsg
<jsg@openbsd.org>
Sun, 3 Aug 2014 14:35:30 +0000
(14:35 +0000)
committer
jsg
<jsg@openbsd.org>
Sun, 3 Aug 2014 14:35:30 +0000
(14:35 +0000)
the return value is stored in must be signed. Fixes a test for error.
ok jsing@ guenther@
lib/libressl/ressl_verify.c
patch
|
blob
|
history
diff --git
a/lib/libressl/ressl_verify.c
b/lib/libressl/ressl_verify.c
index
e98a264
..
0942f7e
100644
(file)
--- a/
lib/libressl/ressl_verify.c
+++ b/
lib/libressl/ressl_verify.c
@@
-143,7
+143,7
@@
ressl_check_common_name(X509 *cert, const char *host)
{
X509_NAME *name;
char *common_name = NULL;
-
size_
t common_name_len;
+
in
t common_name_len;
int rv = -1;
name = X509_get_subject_name(cert);