Skip to content

Commit

Permalink
http_client: fixed safety check looking up var names
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 8, 2017
1 parent 98f3570 commit 74215ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/http_client/http_client.c
Expand Up @@ -561,7 +561,7 @@ static int ki_curl_connect(sip_msg_t *_m, str *con, str *url, str *dpv)
pv_spec_t *dst;

dst = pv_cache_get(dpv);
if(dpv==NULL) {
if(dst==NULL) {
LM_ERR("failed to get pv spec for: %.*s\n", dpv->len, dpv->s);
return -1;
}
Expand Down Expand Up @@ -635,7 +635,7 @@ static int ki_curl_connect_post(sip_msg_t *_m, str *con, str *url,
pv_spec_t *dst;

dst = pv_cache_get(dpv);
if(dpv==NULL) {
if(dst==NULL) {
LM_ERR("failed to get pv spec for: %.*s\n", dpv->len, dpv->s);
return -1;
}
Expand Down Expand Up @@ -810,7 +810,7 @@ static int ki_http_query_post_hdrs(sip_msg_t *_m, str *url, str *post, str *hdrs
pv_spec_t *dst;

dst = pv_cache_get(dpv);
if(dpv==NULL) {
if(dst==NULL) {
LM_ERR("failed to get pv spec for: %.*s\n", dpv->len, dpv->s);
return -1;
}
Expand Down

0 comments on commit 74215ac

Please sign in to comment.