socket: Remove dead code
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 14 Aug 2014 17:06:43 +0000 (18:06 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 14 Aug 2014 17:06:43 +0000 (18:06 +0100)
At that point, (len > 0), since there are conditions above handling the
(len == 0) and (len < 0) cases, both of which break from the loop.

Coverity issue: #29325

socket/tcp-bsd.c

index 2cfca53..5726e8f 100644 (file)
@@ -261,9 +261,6 @@ socket_recv_messages (NiceSocket *sock,
 
     if (recv_messages[i].from)
       *recv_messages[i].from = priv->remote_addr;
-
-    if (len <= 0)
-      break;
   }
 
   /* Was there an error processing the first message? */