From ef4a054890a1e5f99aa77804d88c3171eaee5f68 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 16 Feb 2012 21:57:34 +0000 Subject: [PATCH] null check git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@68039 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con_socks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c index 9b3888d..56f1968 100644 --- a/src/lib/ecore_con/ecore_con_socks.c +++ b/src/lib/ecore_con/ecore_con_socks.c @@ -766,7 +766,7 @@ ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, c { if ((!ip) || (!ip[0]) || (port < -1) || (port > 65535) || (username && (!username[0])) || (password && (!password[0]))) return EINA_FALSE; - return !!_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, strlen(password)); + return !!_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, password ? strlen(password) : 0); } /** @@ -790,7 +790,7 @@ ecore_con_socks5_remote_del(const char *ip, int port, const char *username, cons return; if (!ecore_con_socks_proxies) return; - v5 = (Ecore_Con_Socks_v5*)_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, strlen(password)); + v5 = (Ecore_Con_Socks_v5*)_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, password ? strlen(password) : 0); if (!v5) return; ecore_con_socks_proxies = eina_list_remove(ecore_con_socks_proxies, v5); _ecore_con_socks_free((Ecore_Con_Socks*)v5); -- 2.7.4