libfetch: fetch_close: make sure conn->ssl is valid before shutting down.
This commit is contained in:
parent
633c20a2e6
commit
7bb36ddaa2
@ -732,8 +732,10 @@ fetch_close(conn_t *conn)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef WITH_SSL
|
#ifdef WITH_SSL
|
||||||
SSL_shutdown(conn->ssl);
|
if (conn->ssl) {
|
||||||
SSL_free(conn->ssl);
|
SSL_shutdown(conn->ssl);
|
||||||
|
SSL_free(conn->ssl);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ret = close(conn->sd);
|
ret = close(conn->sd);
|
||||||
if (conn->cache_url)
|
if (conn->cache_url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user