From cdd24403ae427aa8be05b6dbec5b38e58feb3934 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Mon, 24 Jun 2002 21:10:16 +0000 Subject: *** empty log message *** --- userspace/ebtables2/ebtables.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'userspace') diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c index c58c0c6..48861f3 100644 --- a/userspace/ebtables2/ebtables.c +++ b/userspace/ebtables2/ebtables.c @@ -744,7 +744,8 @@ void check_for_loops() // now see if we've been here before for (k = 0; k < sp; k++) if (stack[k].chain_nr == verdict + NF_BR_NUMHOOKS) - goto error; + print_error("Loop from chain %s to chain %s", + nr_to_chain(chain_nr)->name, nr_to_chain(stack[k].chain_nr)->name); // jump to the chain, make sure we know how to get back stack[sp].chain_nr = chain_nr; stack[sp].n = j; @@ -772,8 +773,6 @@ letscontinue: } free(stack); return; -error: - print_error("Loop"); } // parse the chain name and return the corresponding nr -- cgit v1.2.3