forked from enlightenment/efl
evas cserve2 client - treat an invalid size header as fatal
this should make coverity CID 1361430 happy
This commit is contained in:
parent
55f791eb4c
commit
94af40b3b6
|
@ -438,7 +438,7 @@ int main(void)
|
||||||
if (size < 0)
|
if (size < 0)
|
||||||
{
|
{
|
||||||
printf("got a message claiming < 0 size payload!\n");
|
printf("got a message claiming < 0 size payload!\n");
|
||||||
continue;
|
exit(-1);
|
||||||
}
|
}
|
||||||
len = recv(s, msgbuf, size, 0);
|
len = recv(s, msgbuf, size, 0);
|
||||||
printf("size of received message: %d\n", len);
|
printf("size of received message: %d\n", len);
|
||||||
|
|
Loading…
Reference in New Issue