barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7de5146a3b66b5136c3a5ce0b31b5ebd91978f9f

commit 7de5146a3b66b5136c3a5ce0b31b5ebd91978f9f
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Mon Dec 19 10:37:21 2016 -0200

    efl_net: fix CID 1367489 due copy & paste.
    
    we're looking at "x" since it's the return of getaddrinfo(), not "r"
    which is used for something else.
---
 src/lib/ecore_con/ecore_con.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 53a9bda..6954d17 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -529,7 +529,7 @@ efl_net_ip_socket_activate_check(const char *address, int 
family, int type, Eina
                {
                   x = getaddrinfo(host, port, &hints, &results);
                }
-             while ((r == EAI_AGAIN) || ((r == EAI_SYSTEM) && (errno == 
EINTR)));
+             while ((x == EAI_AGAIN) || ((x == EAI_SYSTEM) && (errno == 
EINTR)));
 
              if (x != 0)
                {

-- 


Reply via email to