diff options
author | 2012-07-13 15:11:14 +0000 | |
---|---|---|
committer | 2012-07-13 15:11:14 +0000 | |
commit | 510ecc0260da294d64365f6ab2233dd14237430f (patch) | |
tree | a07b9df336749b3c91e3efbcfb186e07ca3d3249 | |
parent | Make hppa64 kernel compile again. (diff) | |
download | wireguard-openbsd-510ecc0260da294d64365f6ab2233dd14237430f.tar.xz wireguard-openbsd-510ecc0260da294d64365f6ab2233dd14237430f.zip |
npppd used wrong AVPs as a `calling number' because `break' in switch
case was missing.
ok claudio henning
-rw-r--r-- | usr.sbin/npppd/l2tp/l2tp_call.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/npppd/l2tp/l2tp_call.c b/usr.sbin/npppd/l2tp/l2tp_call.c index 28c973f8af5..990294709cc 100644 --- a/usr.sbin/npppd/l2tp/l2tp_call.c +++ b/usr.sbin/npppd/l2tp/l2tp_call.c @@ -1,4 +1,4 @@ -/* $OpenBSD: l2tp_call.c,v 1.12 2012/05/08 13:18:37 yasuoka Exp $ */ +/* $OpenBSD: l2tp_call.c,v 1.13 2012/07/13 15:11:14 yasuoka Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Id: l2tp_call.c,v 1.12 2012/05/08 13:18:37 yasuoka Exp $ */ +/* $Id: l2tp_call.c,v 1.13 2012/07/13 15:11:14 yasuoka Exp $ */ /**@file L2TP LNS call */ #include <sys/types.h> #include <sys/param.h> @@ -329,6 +329,7 @@ l2tp_call_recv_ICRQ(l2tp_call *_this, u_char *pkt, int pktlen) * Windows 98/Me/NT asserts mandatory bit in * Physical Channel Id */ + break; case L2TP_AVP_TYPE_CALLING_NUMBER: slen = MIN(sizeof(_this->calling_number) - 1, avp_attr_length(avp)); |