summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2016-11-22 16:05:51 -0800
committerFlorian Westphal <fw@strlen.de>2016-11-23 01:25:44 +0100
commit36e7d239dd721a60f9bf3191ae50e726c34ee50d (patch)
tree227025d8b0a2ff0a200947166b7eab8b759ae1de /extensions
parentc44820553f5c0cba2b5caa61de935b57cd62ec88 (diff)
libxt_multiport: remove an unused variable
Clang's static analyzer flagged the shift this patch removes as shifting a garbage value. Looks like `m` isn't used at all anyway, so we can simply remove it. Signed-off-by: George Burgess IV <gbiv@google.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_multiport.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c
index 5c5cbe0f..07ad4cfd 100644
--- a/extensions/libxt_multiport.c
+++ b/extensions/libxt_multiport.c
@@ -108,7 +108,6 @@ parse_multi_ports_v1(const char *portstring,
{
char *buffer, *cp, *next, *range;
unsigned int i;
- uint16_t m;
buffer = strdup(portstring);
if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed");
@@ -133,7 +132,6 @@ parse_multi_ports_v1(const char *portstring,
if (multiinfo->ports[i-1] >= multiinfo->ports[i])
xtables_error(PARAMETER_PROBLEM,
"invalid portrange specified");
- m <<= 1;
}
}
multiinfo->count = i;