ecore_con: fix rebase issue.
authorCedric BAIL <cedric@osg.samsung.com>
Sat, 7 Mar 2015 14:53:40 +0000 (15:53 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Sat, 7 Mar 2015 14:53:40 +0000 (15:53 +0100)
Catched by Coverity CID 1287124.

src/lib/ecore_con/ecore_con.c

index 20aa2a8..e8d7ab4 100644 (file)
@@ -401,6 +401,8 @@ _ecore_con_server_eo_base_finalize(Ecore_Con_Server *obj, Ecore_Con_Server_Data
    if (!svr->name)
      goto error;
 
+   type = compl_type & ECORE_CON_TYPE;
+
    EINA_SAFETY_ON_TRUE_GOTO(((type == ECORE_CON_REMOTE_TCP) ||
                              (type == ECORE_CON_REMOTE_NODELAY) ||
                              (type == ECORE_CON_REMOTE_CORK) ||
@@ -411,8 +413,6 @@ _ecore_con_server_eo_base_finalize(Ecore_Con_Server *obj, Ecore_Con_Server_Data
    if (ecore_con_ssl_server_prepare(obj, compl_type & ECORE_CON_SSL))
      goto error;
 
-   type = compl_type & ECORE_CON_TYPE;
-
    if ((type == ECORE_CON_LOCAL_USER) ||
        (type == ECORE_CON_LOCAL_SYSTEM) ||
        (type == ECORE_CON_LOCAL_ABSTRACT))