summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorStephen Beahm <stephenbeahm@comcast.net>2010-12-09 06:15:50 -0500
committerJan Engelhardt <jengelh@medozas.de>2011-01-08 03:55:53 +0100
commit63ef52ac6bf8d555779456166009bd2f6b0a1081 (patch)
tree7e31de33e45fda8d25bbfe576e9cd361cc257fb9 /extensions
parentdfbedfedf610210c4ee3f00e9c4f9ea24c4ffe23 (diff)
libipt_REDIRECT: avoid dereference of uninitialized pointer
When using --to-ports with a port name instead of a numerical specification, a segfault occurs. References: http://bugzilla.netfilter.org/show_bug.cgi?id=691 Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libipt_REDIRECT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c
index 4760e655..74b3aa13 100644
--- a/extensions/libipt_REDIRECT.c
+++ b/extensions/libipt_REDIRECT.c
@@ -41,7 +41,7 @@ static void REDIRECT_init(struct xt_entry_target *t)
static void
parse_ports(const char *arg, struct nf_nat_multi_range *mr)
{
- char *end;
+ char *end = "";
unsigned int port, maxport;
mr->range[0].flags |= IP_NAT_RANGE_PROTO_SPECIFIED;