[Olsr-dev] [PATCH v1 01/10] info: requests that are too large must set s to < 0

Ferry Huberts (spam-protected)
Sun Feb 21 18:56:14 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/olsrd_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 540d7ca..71dae18 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -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) {
-- 
2.5.0




More information about the Olsr-dev mailing list