Skip to content

Commit

Permalink
Merge pull request #9 from Jeffrey-P-McAteer/master
Browse files Browse the repository at this point in the history
fixed to compile with SSL enabled by renaming old variables
  • Loading branch information
Taymindis authored Feb 17, 2019
2 parents 2907bdf + 5949ee3 commit 3279144
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ngx_link_func_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,7 @@ ngx_http_link_func_read_data_from_server_via_ssl(SSL *ssl, ngx_conf_t *cf) {
}
}
done:
hhb = convert_to_http_header_body(final_buf, curr_size, cycle);
hhb = convert_to_http_header_body(final_buf, curr_size, cf);
ngx_pfree(cf->pool, final_buf);
return hhb;
}
Expand All @@ -2616,10 +2616,10 @@ ngx_http_link_func_https_request(ngx_conf_t *cf, ngx_http_link_func_srv_conf_t*
ngx_http_link_func_http_header_body* hhb = NULL;
SSL_CTX *ctx = NULL;
SSL *ssl = NULL;
if (ngx_http_link_func_connect_and_request_via_ssl(&sockfd, scf, &ctx, &ssl, cycle)) {
hhb = ngx_http_link_func_read_data_from_server_via_ssl(ssl, cycle);
if (ngx_http_link_func_connect_and_request_via_ssl(&sockfd, scf, &ctx, &ssl, cf)) {
hhb = ngx_http_link_func_read_data_from_server_via_ssl(ssl, cf);
if (hhb) {
ngx_http_link_func_write_to_file((char*)scf->_libname.data, hhb->body_content, hhb->body_len, cycle);
ngx_http_link_func_write_to_file((char*)scf->_libname.data, hhb->body_content, hhb->body_len, cf);
ngx_pfree(cf->pool, hhb->header_content);
ngx_pfree(cf->pool, hhb->body_content);
ngx_pfree(cf->pool, hhb);
Expand Down

0 comments on commit 3279144

Please sign in to comment.