From 2e5babbfaddb267523c8450acf51c06f00f492c7 Mon Sep 17 00:00:00 2001 From: Mart Frauenlob Date: Sun, 2 Feb 2014 19:39:01 +0100 Subject: libxtables: Print meaningful error message for an invalid MAC address string If an invalid MAC address is used on the commmand line, the error message `ether' was not really describing the problem. Signed-off-by: Mart Frauenlob Signed-off-by: Pablo Neira Ayuso --- libxtables/xtoptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxtables/xtoptions.c b/libxtables/xtoptions.c index 78e9abd6..9b4c5aa5 100644 --- a/libxtables/xtoptions.c +++ b/libxtables/xtoptions.c @@ -802,7 +802,7 @@ static void xtopt_parse_ethermac(struct xt_option_call *cb) sizeof(cb->val.ethermac)); return; out: - xt_params->exit_err(PARAMETER_PROBLEM, "ether"); + xt_params->exit_err(PARAMETER_PROBLEM, "Invalid MAC address specified."); } static void (*const xtopt_subparse[])(struct xt_option_call *) = { -- cgit v1.2.3