txtinfo: /config & /plugins are not implemented: return "not found" (404)
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 21 Feb 2016 17:26:39 +0000 (18:26 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:16 +0000 (13:39 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 4b28265..fb0aa6f 100644 (file)
@@ -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";