]> granicus.if.org Git - curl/commitdiff
openssl: fix "Value stored to 'rc' is never read" scan-build error
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Nov 2017 22:10:48 +0000 (23:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2017 08:02:40 +0000 (09:02 +0100)
lib/vtls/openssl.c

index 6cd813bf3bafe3abb15d09c0a893cd52a5d9bcf4..9d3ea14ee5f562cee3aa1ffeb4abab2e9cb71d8e 100644 (file)
@@ -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);