info: requests that are too large must set s to < 0
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 21 Feb 2016 14:41:03 +0000 (15:41 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:15 +0000 (13:39 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index 540d7ca..71dae18 100644 (file)
@@ -421,7 +421,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
       /* input was much too long, just skip the rest */
       while (recv(ipc_connection, (void *) &sink_buffer, sizeof(sink_buffer), 0) == sizeof(sink_buffer))
         ;
-      s = 0;
+      s = -1;
     }
 
     if (0 < s) {