diff --git a/src/protocol/curl/ftp.c b/src/protocol/curl/ftp.c index fa9a8a5fd..ef841db82 100644 --- a/src/protocol/curl/ftp.c +++ b/src/protocol/curl/ftp.c @@ -513,9 +513,9 @@ do_ftpes(struct connection *conn) curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.ftp.curl_max_recv_speed", NULL)); curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.ftp.curl_max_send_speed", NULL)); - char *interface = get_cmd_opt_str("bind-address"); - if (interface && *interface) { - curl_easy_setopt(curl, CURLOPT_INTERFACE, interface); + char *inter_face = get_cmd_opt_str("bind-address"); + if (inter_face && *inter_face) { + curl_easy_setopt(curl, CURLOPT_INTERFACE, inter_face); } //curl_easy_setopt(curl, CURLOPT_XFERINFODATA, conn); //curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback); diff --git a/src/protocol/curl/http.c b/src/protocol/curl/http.c index 07d3decd9..5906c6721 100644 --- a/src/protocol/curl/http.c +++ b/src/protocol/curl/http.c @@ -207,9 +207,9 @@ do_http(struct connection *conn) curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.http.curl_max_recv_speed", NULL)); curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)get_opt_long("protocol.http.curl_max_send_speed", NULL)); - char *interface = get_cmd_opt_str("bind-address"); - if (interface && *interface) { - curl_easy_setopt(curl, CURLOPT_INTERFACE, interface); + char *inter_face = get_cmd_opt_str("bind-address"); + if (inter_face && *inter_face) { + curl_easy_setopt(curl, CURLOPT_INTERFACE, inter_face); } if (conn->uri->protocol == PROTOCOL_HTTPS) {