mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
openssl: fix "Value stored to 'rc' is never read" scan-build error
This commit is contained in:
parent
cd79b53191
commit
3d97e37441
@ -3067,12 +3067,12 @@ static CURLcode servercert(struct connectdata *conn,
|
|||||||
ASN1_TIME_print(mem, X509_get0_notBefore(BACKEND->server_cert));
|
ASN1_TIME_print(mem, X509_get0_notBefore(BACKEND->server_cert));
|
||||||
len = BIO_get_mem_data(mem, (char **) &ptr);
|
len = BIO_get_mem_data(mem, (char **) &ptr);
|
||||||
infof(data, " start date: %.*s\n", len, 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));
|
ASN1_TIME_print(mem, X509_get0_notAfter(BACKEND->server_cert));
|
||||||
len = BIO_get_mem_data(mem, (char **) &ptr);
|
len = BIO_get_mem_data(mem, (char **) &ptr);
|
||||||
infof(data, " expire date: %.*s\n", len, ptr);
|
infof(data, " expire date: %.*s\n", len, ptr);
|
||||||
rc = BIO_reset(mem);
|
(void)BIO_reset(mem);
|
||||||
|
|
||||||
BIO_free(mem);
|
BIO_free(mem);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user