From 7c20266a22c170ba66a9c9a82d9fd214bfb7fa48 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 20 Apr 2017 23:40:22 +0200 Subject: [PATCH] sys: shell: gnrc_6ctx: fix gnrc_6ctx_add error handling --- sys/shell/commands/sc_gnrc_6ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_gnrc_6ctx.c b/sys/shell/commands/sc_gnrc_6ctx.c index 29e21eb850..c47242ac03 100644 --- a/sys/shell/commands/sc_gnrc_6ctx.c +++ b/sys/shell/commands/sc_gnrc_6ctx.c @@ -91,7 +91,7 @@ int _gnrc_6ctx_add(char *cmd_str, char *ctx_str, char *prefix_str, char *ltime_s return 1; } prefix_len_str = strtok_r(NULL, "/", &save_ptr); - if (addr_str == NULL) { + if (prefix_len_str == 0) { _usage(cmd_str); return 1; }