ecore: Ecore_Con_Eet reset size when receiving an Eet_Data.

SVN revision: 76345
This commit is contained in:
Cedric BAIL 2012-09-08 16:12:34 +00:00
parent 80dbe14ea8
commit 5689ab4363
1 changed files with 4 additions and 1 deletions

View File

@ -268,7 +268,6 @@ static void
_ecore_con_eet_data(Ecore_Con_Reply *n, void *data, unsigned int size) _ecore_con_eet_data(Ecore_Con_Reply *n, void *data, unsigned int size)
{ {
/* FIXME: Enforce detection of attack and kill connection on that case */ /* FIXME: Enforce detection of attack and kill connection on that case */
if (n->buffer) if (n->buffer)
{ {
if (n->buffer_current + size > n->buffer_length) if (n->buffer_current + size > n->buffer_length)
@ -320,9 +319,13 @@ _ecore_con_eet_data(Ecore_Con_Reply *n, void *data, unsigned int size)
return ; return ;
} }
_ecore_con_eet_reply_cleanup(n); _ecore_con_eet_reply_cleanup(n);
size += protocol_length + section_length;
} }
} }
} }
size += 4 * sizeof (unsigned int) + 2;
} }
eet_connection_received(n->econn, data, size); eet_connection_received(n->econn, data, size);