From 41b5da4c2049fbfc54b3f97d64a948c223195e3e Mon Sep 17 00:00:00 2001 From: luigi Date: Sun, 4 Aug 2002 05:16:19 +0000 Subject: [PATCH] Fix generation of check-state rules, which i broke in last commit. --- sbin/ipfw/ipfw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 0bcc48202c92..31458e689303 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -2776,7 +2776,7 @@ add(int ac, char *av[]) /* * put back the have_state command as last opcode */ - if (have_state) { + if (have_state && have_state->opcode != O_CHECK_STATE) { i = F_LEN(have_state); bcopy(have_state, dst, i * sizeof(u_int32_t)); dst += i;