summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/pipex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index 10ee07029f3..6ba44d75ec8 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.103 2017/07/13 14:54:25 mpi Exp $ */
+/* $OpenBSD: pipex.c,v 1.104 2017/08/11 20:56:15 mestre Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -2311,10 +2311,13 @@ pipex_mppe_reduce_key(struct pipex_mppe *mppe)
{
switch (mppe->keylenbits) {
case 40:
+ mppe->session_key[0] = 0xd1;
mppe->session_key[1] = 0x26;
mppe->session_key[2] = 0x9e;
+ break;
case 56:
mppe->session_key[0] = 0xd1;
+ break;
}
}