From: Herbert Xu Date: Fri, 12 Oct 2007 08:56:40 +0000 (+0200) Subject: Fix typo in tunnel code (o_key vs. i_key). X-Git-Tag: v2.6.24-rc4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4282c6c52b4f1f4b5e1ef5ef377c342ca87e0b73;p=thirdparty%2Fiproute2.git Fix typo in tunnel code (o_key vs. i_key). If a dotted quad ikey is specified for GRE tunnels, it gets set as the okey instead. This patch fixes it. (http://bugs.debian.org/200714) Signed-off-by: Andreas Henriksson Signed-off-by: Stephen Hemminger --- diff --git a/ip/iptunnel.c b/ip/iptunnel.c index 828d80a97..aee526b33 100644 --- a/ip/iptunnel.c +++ b/ip/iptunnel.c @@ -113,7 +113,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) NEXT_ARG(); p->i_flags |= GRE_KEY; if (strchr(*argv, '.')) - p->o_key = get_addr32(*argv); + p->i_key = get_addr32(*argv); else { if (get_unsigned(&uval, *argv, 0)<0) { fprintf(stderr, "invalid value of \"ikey\"\n");