diff options
author | Stephen Beahm <stephenbeahm@comcast.net> | 2010-12-09 06:15:50 -0500 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-01-08 03:55:53 +0100 |
commit | 63ef52ac6bf8d555779456166009bd2f6b0a1081 (patch) | |
tree | 7e31de33e45fda8d25bbfe576e9cd361cc257fb9 /extensions | |
parent | dfbedfedf610210c4ee3f00e9c4f9ea24c4ffe23 (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.c | 2 |
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; |