Skip to content

Commit

Permalink
Update missed references to handle with sync_handle
Browse files Browse the repository at this point in the history
  • Loading branch information
rrb3942 committed Jan 24, 2017
1 parent 2d1e530 commit 6aab498
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/rest_client/rest_methods.c
Expand Up @@ -498,8 +498,8 @@ int rest_get_method(struct sip_msg *msg, char *url,
w_curl_easy_setopt(sync_handle, CURLOPT_CONNECTTIMEOUT, connection_timeout);
w_curl_easy_setopt(sync_handle, CURLOPT_TIMEOUT, curl_timeout);

w_curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(handle, CURLOPT_STDERR, stdout);
w_curl_easy_setopt(sync_handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(sync_handle, CURLOPT_STDERR, stdout);

w_curl_easy_setopt(sync_handle, CURLOPT_WRITEFUNCTION, write_func);
bodyp = &body; /* doing this just to make coverity happy */
Expand Down Expand Up @@ -625,8 +625,8 @@ int rest_post_method(struct sip_msg *msg, char *url, char *body, char *ctype,
w_curl_easy_setopt(sync_handle, CURLOPT_CONNECTTIMEOUT, connection_timeout);
w_curl_easy_setopt(sync_handle, CURLOPT_TIMEOUT, curl_timeout);

w_curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(handle, CURLOPT_STDERR, stdout);
w_curl_easy_setopt(sync_handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(sync_handle, CURLOPT_STDERR, stdout);

w_curl_easy_setopt(sync_handle, CURLOPT_WRITEFUNCTION, write_func);
w_curl_easy_setopt(sync_handle, CURLOPT_WRITEDATA, &res_body);
Expand Down Expand Up @@ -742,8 +742,8 @@ int rest_put_method(struct sip_msg *msg, char *url, char *body, char *ctype,
w_curl_easy_setopt(sync_handle, CURLOPT_CONNECTTIMEOUT, connection_timeout);
w_curl_easy_setopt(sync_handle, CURLOPT_TIMEOUT, curl_timeout);

w_curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(handle, CURLOPT_STDERR, stdout);
w_curl_easy_setopt(sync_handle, CURLOPT_VERBOSE, 1);
w_curl_easy_setopt(sync_handle, CURLOPT_STDERR, stdout);

w_curl_easy_setopt(sync_handle, CURLOPT_WRITEFUNCTION, write_func);
w_curl_easy_setopt(sync_handle, CURLOPT_WRITEDATA, &res_body);
Expand Down

0 comments on commit 6aab498

Please sign in to comment.