ecore-con - fix explicit null ptr deref

fix CID 1232729
This commit is contained in:
Carsten Haitzler 2014-08-27 17:14:30 +09:00
parent 61b5a4e40b
commit 9de5c8131d
1 changed files with 7 additions and 3 deletions

View File

@ -57,10 +57,14 @@ _ecore_con_dns_free(Ecore_Con_DNS *dns)
static void
_ecore_con_dns_del(Ecore_Con_DNS *dns)
{
Ecore_Con_Server_Data *svr = NULL;
if (dns->svr)
svr = eo_data_scope_get(dns->svr, ECORE_CON_CLIENT_CLASS);
if (svr->infos) svr->infos = eina_list_remove(svr->infos, dns);
{
Ecore_Con_Server_Data *svr;
svr = eo_data_scope_get(dns->svr, ECORE_CON_CLIENT_CLASS);
if ((svr) && (svr->infos))
svr->infos = eina_list_remove(svr->infos, dns);
}
_ecore_con_dns_free(dns);
}