From: Denis Vlasenko Date: Wed, 10 Oct 2007 14:43:03 +0000 (-0000) Subject: ip tunnel parameter parsing fix by Jean Wolter X-Git-Tag: 1_8_0~67 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db60bcf1b738b772d73573d9f27cae28eea10846;p=oweals%2Fbusybox.git ip tunnel parameter parsing fix by Jean Wolter --- 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();