summaryrefslogtreecommitdiffstats
path: root/sbin/setkey
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-10-13 18:12:46 +0000
committerume <ume@FreeBSD.org>2005-10-13 18:12:46 +0000
commitd243f974836ea2777dece0a49f051a8015f683d2 (patch)
tree52422bbcca17c66f3be39adf198391f13be27256 /sbin/setkey
parent6ff0ede0d00dd7a49d6f6a98b5e65d8f6a7695f4 (diff)
downloadFreeBSD-src-d243f974836ea2777dece0a49f051a8015f683d2.zip
FreeBSD-src-d243f974836ea2777dece0a49f051a8015f683d2.tar.gz
fixed a crush when either -lh or -ls option is used.
Obtained from: KAME
Diffstat (limited to 'sbin/setkey')
-rw-r--r--sbin/setkey/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/setkey/parse.y b/sbin/setkey/parse.y
index d6bb8c4..e90c3a1 100644
--- a/sbin/setkey/parse.y
+++ b/sbin/setkey/parse.y
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: parse.y,v 1.82 2004/04/15 08:03:57 sakane Exp $ */
+/* $KAME: parse.y,v 1.83 2004/05/18 08:48:23 sakane Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
@@ -1053,7 +1053,7 @@ setkeymsg_add(type, satype, srcs, dsts)
m_lt.sadb_lifetime_usetime = 0;
memcpy(buf + l, &m_lt, slen);
- l += len;
+ l += slen;
}
/* set lifetime for SOFT */
@@ -1069,7 +1069,7 @@ setkeymsg_add(type, satype, srcs, dsts)
m_lt.sadb_lifetime_usetime = 0;
memcpy(buf + l, &m_lt, slen);
- l += len;
+ l += slen;
}
len = sizeof(struct sadb_sa);
OpenPOWER on IntegriCloud