raster pushed a commit to branch master.

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

commit eb951e99a6dfc34468eb16f32bd52419290ad068
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Jan 26 01:03:44 2018 +0900

    ecore_con - give error output if port num is invalid
---
 src/lib/ecore_con/ecore_con_legacy.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/ecore_con_legacy.c 
b/src/lib/ecore_con/ecore_con_legacy.c
index a074008e9d..32a524b33f 100644
--- a/src/lib/ecore_con/ecore_con_legacy.c
+++ b/src/lib/ecore_con/ecore_con_legacy.c
@@ -1672,7 +1672,11 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
    /* The allowable port number is an unsigned 16-bit integer, so 1-65535, 0 
is reserved */
-   if (port < 0 || port > 65535) return NULL;
+   if ((port < 0) || (port > 65535))
+     {
+        ERR("Port %i invalid (0 <= port <= 65535)");
+        return NULL;
+     }
 
    type = compl_type & ECORE_CON_TYPE;
 

-- 


Reply via email to