diff --git a/sys/net/debugnet.c b/sys/net/debugnet.c index a197017c176..3295b33c3dd 100644 --- a/sys/net/debugnet.c +++ b/sys/net/debugnet.c @@ -1049,6 +1049,7 @@ debugnet_parse_ddb_cmd(const char *cmd, struct debugnet_ddb_config *result) if (ifp == NULL) { db_printf("Could not locate interface %s\n", db_tok_string); + error = ENOENT; goto cleanup; } } else {