diff options
Diffstat (limited to 'libiptc')
-rw-r--r-- | libiptc/libiptc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 68b5a149..5bbd9092 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -908,7 +908,7 @@ TC_INSERT_ENTRY(const IPT_CHAINLABEL chain, unsigned int chainindex, offset; STRUCT_ENTRY_TARGET old; struct chain_cache *c; - STRUCT_ENTRY *e; + STRUCT_ENTRY *tmp; int ret; iptc_fn = TC_INSERT_ENTRY; @@ -919,8 +919,8 @@ TC_INSERT_ENTRY(const IPT_CHAINLABEL chain, chainindex = entry2index(*handle, c->start); - e = index2entry(*handle, chainindex + rulenum); - if (!e || e > c->end) { + tmp = index2entry(*handle, chainindex + rulenum); + if (!tmp || tmp > c->end) { errno = E2BIG; return 0; } @@ -947,7 +947,7 @@ TC_REPLACE_ENTRY(const IPT_CHAINLABEL chain, unsigned int chainindex, offset; STRUCT_ENTRY_TARGET old; struct chain_cache *c; - STRUCT_ENTRY *e; + STRUCT_ENTRY *tmp; int ret; iptc_fn = TC_REPLACE_ENTRY; @@ -959,8 +959,8 @@ TC_REPLACE_ENTRY(const IPT_CHAINLABEL chain, chainindex = entry2index(*handle, c->start); - e = index2entry(*handle, chainindex + rulenum); - if (!e || e >= c->end) { + tmp = index2entry(*handle, chainindex + rulenum); + if (!tmp || tmp >= c->end) { errno = E2BIG; return 0; } |