summaryrefslogtreecommitdiffstats
path: root/hicn-light/src
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src')
-rw-r--r--hicn-light/src/io/udpListener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/io/udpListener.c b/hicn-light/src/io/udpListener.c
index 4411bc7f6..6cdb9283e 100644
--- a/hicn-light/src/io/udpListener.c
+++ b/hicn-light/src/io/udpListener.c
@@ -459,7 +459,7 @@ static void _readCommand(UdpListener *udp, int fd,
command_id id = *(command + 1);
- if ( id < 0 || id >= LAST_COMMAND_VALUE){
+ if (id >= LAST_COMMAND_VALUE){
printf("the message received is not a valid command, drop\n");
return;
}