diff options
author | jsg <> | 2014-08-03 14:35:30 +0000 |
---|---|---|
committer | jsg <> | 2014-08-03 14:35:30 +0000 |
commit | 89d8c27f171da5b9f08ea9763b71cb5db986646c (patch) | |
tree | 9e2649ceba40440466c103719536c7e0de5f4ee7 /src/lib | |
parent | 00cfb3889e6121af5ee9e1dc71f6c57e4a165c06 (diff) | |
download | openbsd-89d8c27f171da5b9f08ea9763b71cb5db986646c.tar.gz openbsd-89d8c27f171da5b9f08ea9763b71cb5db986646c.tar.bz2 openbsd-89d8c27f171da5b9f08ea9763b71cb5db986646c.zip |
X509_NAME_get_text_by_NID() returns -1 on error so the type
the return value is stored in must be signed. Fixes a test for error.
ok jsing@ guenther@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libressl/ressl_verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libressl/ressl_verify.c b/src/lib/libressl/ressl_verify.c index e98a264f4f..0942f7e230 100644 --- a/src/lib/libressl/ressl_verify.c +++ b/src/lib/libressl/ressl_verify.c | |||
@@ -143,7 +143,7 @@ ressl_check_common_name(X509 *cert, const char *host) | |||
143 | { | 143 | { |
144 | X509_NAME *name; | 144 | X509_NAME *name; |
145 | char *common_name = NULL; | 145 | char *common_name = NULL; |
146 | size_t common_name_len; | 146 | int common_name_len; |
147 | int rv = -1; | 147 | int rv = -1; |
148 | 148 | ||
149 | name = X509_get_subject_name(cert); | 149 | name = X509_get_subject_name(cert); |