We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b500ddd + 4f934cb commit b4b157eCopy full SHA for b4b157e
ext/ftp/ftp.c
@@ -167,9 +167,11 @@ ftp_close(ftpbuf_t *ftp)
167
if (ftp == NULL) {
168
return NULL;
169
}
170
+#ifdef HAVE_FTP_SSL
171
if (ftp->last_ssl_session) {
172
SSL_SESSION_free(ftp->last_ssl_session);
173
174
+#endif
175
if (ftp->data) {
176
data_close(ftp, ftp->data);
177
@@ -232,6 +234,7 @@ ftp_quit(ftpbuf_t *ftp)
232
234
233
235
/* }}} */
236
237
238
static int ftp_ssl_new_session_cb(SSL *ssl, SSL_SESSION *sess)
239
{
240
ftpbuf_t *ftp = SSL_get_app_data(ssl);
@@ -245,6 +248,7 @@ static int ftp_ssl_new_session_cb(SSL *ssl, SSL_SESSION *sess)
245
248
/* Return 0 as we are not using OpenSSL's session cache. */
246
249
return 0;
247
250
251
252
253
/* {{{ ftp_login */
254
int
0 commit comments