aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-10 14:43:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-10 14:43:03 +0000
commitdb60bcf1b738b772d73573d9f27cae28eea10846 (patch)
treec531c6848a91ea53bce113480d7b30087d4606b6 /networking
parent724d196c75e097535d475528002518d5322868c6 (diff)
downloadbusybox-db60bcf1b738b772d73573d9f27cae28eea10846.tar.gz
ip tunnel parameter parsing fix by Jean Wolter <jw5@os.inf.tu-dresden.de>
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/iptunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index a936a4275..a45e64d60 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -241,12 +241,12 @@ static void parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
} else if (key == ARG_remote) {
NEXT_ARG();
key = index_in_strings(keywords, *argv);
- if (key == ARG_any)
+ if (key != ARG_any)
p->iph.daddr = get_addr32(*argv);
} else if (key == ARG_local) {
NEXT_ARG();
key = index_in_strings(keywords, *argv);
- if (key == ARG_any)
+ if (key != ARG_any)
p->iph.saddr = get_addr32(*argv);
} else if (key == ARG_dev) {
NEXT_ARG();