Skip to content

Commit 3279144

Browse files
authored
Merge pull request #9 from Jeffrey-P-McAteer/master
fixed to compile with SSL enabled by renaming old variables
2 parents 2907bdf + 5949ee3 commit 3279144

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ngx_link_func_module.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@ ngx_http_link_func_read_data_from_server_via_ssl(SSL *ssl, ngx_conf_t *cf) {
26052605
}
26062606
}
26072607
done:
2608-
hhb = convert_to_http_header_body(final_buf, curr_size, cycle);
2608+
hhb = convert_to_http_header_body(final_buf, curr_size, cf);
26092609
ngx_pfree(cf->pool, final_buf);
26102610
return hhb;
26112611
}
@@ -2616,10 +2616,10 @@ ngx_http_link_func_https_request(ngx_conf_t *cf, ngx_http_link_func_srv_conf_t*
26162616
ngx_http_link_func_http_header_body* hhb = NULL;
26172617
SSL_CTX *ctx = NULL;
26182618
SSL *ssl = NULL;
2619-
if (ngx_http_link_func_connect_and_request_via_ssl(&sockfd, scf, &ctx, &ssl, cycle)) {
2620-
hhb = ngx_http_link_func_read_data_from_server_via_ssl(ssl, cycle);
2619+
if (ngx_http_link_func_connect_and_request_via_ssl(&sockfd, scf, &ctx, &ssl, cf)) {
2620+
hhb = ngx_http_link_func_read_data_from_server_via_ssl(ssl, cf);
26212621
if (hhb) {
2622-
ngx_http_link_func_write_to_file((char*)scf->_libname.data, hhb->body_content, hhb->body_len, cycle);
2622+
ngx_http_link_func_write_to_file((char*)scf->_libname.data, hhb->body_content, hhb->body_len, cf);
26232623
ngx_pfree(cf->pool, hhb->header_content);
26242624
ngx_pfree(cf->pool, hhb->body_content);
26252625
ngx_pfree(cf->pool, hhb);

0 commit comments

Comments
 (0)