evas cserve2 client - treat an invalid size header as fatal

this should make coverity CID 1361430 happy
This commit is contained in:
Carsten Haitzler 2016-08-08 14:15:02 +09:00
parent 55f791eb4c
commit 94af40b3b6
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ int main(void)
if (size < 0)
{
printf("got a message claiming < 0 size payload!\n");
continue;
exit(-1);
}
len = recv(s, msgbuf, size, 0);
printf("size of received message: %d\n", len);