Fixed a compilation error spotted by RbdPngn

SVN revision: 9553
This commit is contained in:
tsauerbeck 2004-04-01 16:37:47 +00:00 committed by tsauerbeck
parent 40f9fc4f31
commit e81c2946e8
1 changed files with 7 additions and 2 deletions

View File

@ -273,7 +273,7 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
const void *data)
{
Ecore_Con_Server *svr;
Ecore_Con_Type type = compl_type & ~ECORE_CON_USE_SSL;
Ecore_Con_Type type = compl_type;
struct sockaddr_un socket_unix;
struct sockaddr_in socket_addr;
int curstate = 0;
@ -286,7 +286,12 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
/* remote system socket: TCP/IP: [name]:[port] */
svr = calloc(1, sizeof(Ecore_Con_Server));
if (!svr) return NULL;
#if USE_OPENSSL
/* unset the SSL flag for the following checks */
type &= ~ECORE_CON_USE_SSL;
#endif
if ((type == ECORE_CON_LOCAL_USER) ||
(type == ECORE_CON_LOCAL_SYSTEM))
{