debugnet: Fix an error handling bug in the DDB command tokenizer

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-06-16 10:05:10 -04:00
parent 8414331481
commit c262d5e877

View File

@ -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 {