[Olsr-dev] [PATCH v1 02/10] info: also handle empty requests

Ferry Huberts (spam-protected)
Sun Feb 21 18:56:15 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 71dae18..7c3f3d8 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -424,7 +424,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
       s = -1;
     }
 
-    if (0 < s) {
+    if (0 <= s) {
       char * req = requ;
       req[s] = '\0';
       req = parseRequest(req, (size_t*)&s);
-- 
2.5.0




More information about the Olsr-dev mailing list