summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-20 23:10:48 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-21 09:02:40 +0100
commit3d97e37441596b5840be7c667db03f6fe4657051 (patch)
tree0b63b031f4ec87c7d45156b2667afb16ee5fbe5a /lib/vtls
parentcd79b531916d1d24d715f8b04b80ee34027d9c83 (diff)
downloadcurl-3d97e37441596b5840be7c667db03f6fe4657051.tar.gz
openssl: fix "Value stored to 'rc' is never read" scan-build error
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 6cd813bf3..9d3ea14ee 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -3067,12 +3067,12 @@ static CURLcode servercert(struct connectdata *conn,
ASN1_TIME_print(mem, X509_get0_notBefore(BACKEND->server_cert));
len = BIO_get_mem_data(mem, (char **) &ptr);
infof(data, " start date: %.*s\n", len, ptr);
- rc = BIO_reset(mem);
+ (void)BIO_reset(mem);
ASN1_TIME_print(mem, X509_get0_notAfter(BACKEND->server_cert));
len = BIO_get_mem_data(mem, (char **) &ptr);
infof(data, " expire date: %.*s\n", len, ptr);
- rc = BIO_reset(mem);
+ (void)BIO_reset(mem);
BIO_free(mem);