From ef03ecd89ca8206b61e028752ac567036c1150cf Mon Sep 17 00:00:00 2001 From: Guilherme Iscaro Date: Fri, 28 Jul 2017 15:22:07 -0300 Subject: [PATCH] Ecore_Con: Fix wrong comparison. Otherwise it will always evaluate to false. --- src/lib/ecore_con/ecore_con_url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c index 8c03176..39412d7 100644 --- a/src/lib/ecore_con/ecore_con_url.c +++ b/src/lib/ecore_con/ecore_con_url.c @@ -348,7 +348,7 @@ _ecore_con_url_dialer_error(void *data, const Efl_Event *event) int status; status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ @@ -655,7 +655,7 @@ _ecore_con_url_copier_error(void *data, const Efl_Event *event) int status; status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ @@ -1337,7 +1337,7 @@ _ecore_con_url_timeout_cb(void *data) WRN("HTTP timeout url='%s'", efl_net_dialer_address_dial_get(url_con->dialer)); status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ -- 2.7.4