evas cserve client - fix theoretical size less than 0 issue
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 7 Feb 2017 13:07:53 +0000 (22:07 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 7 Feb 2017 23:48:35 +0000 (08:48 +0900)
theoretically size might be zero but it won't be... but make coverity
happy so it doesn't come back to triage

fix CID 1361430

src/bin/evas/evas_cserve2_client.c

index 6a7d484..dd83c17 100644 (file)
@@ -417,6 +417,7 @@ int main(void)
           }
 
         msg = _msg_types[i].parse_func(&size);
+        if (size <= 0) continue;
 
         if (send(s, &size, sizeof(size), MSG_NOSIGNAL) == -1)
           {