From 74215ac16878cc00cf29ae0fc89dfc9aa9ed9399 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 8 Dec 2017 09:07:40 +0100 Subject: [PATCH] http_client: fixed safety check looking up var names --- src/modules/http_client/http_client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/http_client/http_client.c b/src/modules/http_client/http_client.c index 4a19be6b187..9b8abc984d4 100644 --- a/src/modules/http_client/http_client.c +++ b/src/modules/http_client/http_client.c @@ -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; } @@ -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; } @@ -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; }