From 2eb829ff4383204b3c3b4d6e98c1cfbfe5c66cce Mon Sep 17 00:00:00 2001 From: mvs Date: Tue, 28 Jun 2022 16:10:43 +0000 Subject: [PATCH] Don't call pipex_rele_session() when `session' is NULL. Reported by Hrvoje Popovski. ok bluhm@ --- sys/net/if_ethersubr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e3609289fcc..5e9067b0676 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.282 2022/06/27 20:47:10 bluhm Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.283 2022/06/28 16:10:43 mvs Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -543,7 +543,6 @@ ether_input(struct ifnet *ifp, struct mbuf *m) pipex_rele_session(session); return; } - pipex_rele_session(session); } #endif KERNEL_LOCK(); -- 2.20.1