ip tunnel parameter parsing fix by Jean Wolter <jw5@os.inf.tu-dresden.de>
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 10 Oct 2007 14:43:03 +0000 (14:43 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 10 Oct 2007 14:43:03 +0000 (14:43 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20216 69ca8d6d-28ef-0310-b511-8ec308f3f277

networking/libiproute/iptunnel.c

index a936a42..a45e64d 100644 (file)
@@ -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();