[Olsr-dev] [PATCH v1 09/10] txtinfo: /config & /plugins are not implemented: return "not found" (404)

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


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/txtinfo/src/olsrd_txtinfo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index 4b28265..fb0aa6f 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -121,11 +121,11 @@ bool isCommand(const char *str, unsigned int siw) {
 
     case SIW_CONFIG:
       cmd = "/config";
-      break;
+      return false; /* not implemented */
 
     case SIW_PLUGINS:
       cmd = "/plugins";
-      break;
+      return false; /* not implemented */
 
     case SIW_NEIGHBORS_FREIFUNK:
       cmd = "/neighbours";
-- 
2.5.0




More information about the Olsr-dev mailing list