From: discomfitor Date: Sat, 18 Sep 2010 19:29:43 +0000 (+0000) Subject: check return of ssl_server_prepare X-Git-Tag: build/2012-07-04.173327~1791 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=824163112208d8b4a92012d34870e4d209b58bd9;p=profile%2Fivi%2Fecore.git check return of ssl_server_prepare git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@52423 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 2fbf0e8..8e08717 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -220,7 +220,8 @@ ecore_con_server_add(Ecore_Con_Type compl_type, const char *name, int port, svr->client_limit = -1; svr->clients = NULL; svr->ppid = getpid(); - ecore_con_ssl_server_prepare(svr, compl_type & ECORE_CON_SSL); + if (ecore_con_ssl_server_prepare(svr, compl_type & ECORE_CON_SSL)) + goto error; type = compl_type & ECORE_CON_TYPE; @@ -329,7 +330,8 @@ ecore_con_server_connect(Ecore_Con_Type compl_type, const char *name, int port, svr->reject_excess_clients = EINA_FALSE; svr->clients = NULL; svr->client_limit = -1; - ecore_con_ssl_server_prepare(svr, compl_type & ECORE_CON_SSL); + if (ecore_con_ssl_server_prepare(svr, compl_type & ECORE_CON_SSL)) + goto error; type = compl_type & ECORE_CON_TYPE;