From acba80f253364b4870e2b650e653e41206b56694 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Tue, 24 Jul 2018 07:40:35 +0000 Subject: [PATCH] When a GRE packet goes to "decline", the mbuf pointer was not updated properly. This had caused an panic when the mbuf pointer is updated. Found by IIJ. ok dlg --- sys/net/if_gre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 4840bf3e428..1c9a9bda44d 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.123 2018/05/28 00:14:54 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.124 2018/07/24 07:40:35 yasuoka Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -1152,7 +1152,7 @@ gre_input_key(struct mbuf **mp, int *offp, int type, int af, (*input)(ifp, m); return (IPPROTO_DONE); decline: - mp = &m; + *mp = m; return (-1); } -- 2.20.1