git: c262d5e87712 - main - debugnet: Fix an error handling bug in the DDB command tokenizer

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 16 Jun 2022 14:36:25 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=c262d5e877121eb8c89e01ca7f20ecfb01246bd1

commit c262d5e877121eb8c89e01ca7f20ecfb01246bd1
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-06-16 14:05:10 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-06-16 14:05:10 +0000

    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 a197017c1767..3295b33c3dd6 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 {