From c262d5e877121eb8c89e01ca7f20ecfb01246bd1 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 16 Jun 2022 10:05:10 -0400 Subject: [PATCH] debugnet: Fix an error handling bug in the DDB command tokenizer MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- sys/net/debugnet.c | 1 + 1 file changed, 1 insertion(+) 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 {