summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libebt_stp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libebt_stp.c b/extensions/libebt_stp.c
index 81054b26..371fa04c 100644
--- a/extensions/libebt_stp.c
+++ b/extensions/libebt_stp.c
@@ -142,7 +142,7 @@ static void brstp_parse(struct xt_option_call *cb)
#define RANGE_ASSIGN(name, fname, val) { \
stpinfo->config.fname##l = val[0]; \
stpinfo->config.fname##u = cb->nvals > 1 ? val[1] : val[0]; \
- if (val[1] < val[0]) \
+ if (stpinfo->config.fname##u < stpinfo->config.fname##l) \
xtables_error(PARAMETER_PROBLEM, \
"Bad --stp-" name " range"); \
}