From f2828c5040c77825b4f8142cb0585a85b629826b Mon Sep 17 00:00:00 2001 From: rmind Date: Sun, 23 Nov 2008 19:52:38 +0000 Subject: [PATCH] ip_input: fix an IPQ "lock" leak. (hi !) --- sys/netinet/ip_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 67c705ee8d16..fa0fcdf7a349 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.275 2008/10/04 00:09:34 pooka Exp $ */ +/* $NetBSD: ip_input.c,v 1.276 2008/11/23 19:52:38 rmind Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -91,7 +91,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.275 2008/10/04 00:09:34 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.276 2008/11/23 19:52:38 rmind Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -931,6 +931,7 @@ ours: */ if (ip->ip_tos != fp->ipq_tos) { IP_STATINC(IP_STAT_BADFRAGS); + IPQ_UNLOCK(); goto bad; } goto found;