From 94af40b3b6109890e25f7c1432ed3d291b26227e Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 8 Aug 2016 14:15:02 +0900 Subject: [PATCH] evas cserve2 client - treat an invalid size header as fatal this should make coverity CID 1361430 happy --- src/bin/evas/evas_cserve2_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/evas/evas_cserve2_client.c b/src/bin/evas/evas_cserve2_client.c index 1220c17..6a7d484 100644 --- a/src/bin/evas/evas_cserve2_client.c +++ b/src/bin/evas/evas_cserve2_client.c @@ -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); -- 2.7.4