Don't call pipex_rele_session() when `session' is NULL.
authormvs <mvs@openbsd.org>
Tue, 28 Jun 2022 16:10:43 +0000 (16:10 +0000)
committermvs <mvs@openbsd.org>
Tue, 28 Jun 2022 16:10:43 +0000 (16:10 +0000)
Reported by Hrvoje Popovski. ok bluhm@

sys/net/if_ethersubr.c

index e360928..5e9067b 100644 (file)
@@ -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();