Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec fix localcount leak in sav. fixed by ozaki-r@n.o.



details:   https://anonhg.NetBSD.org/src/rev/8d6389ee4a3f
branches:  trunk
changeset: 355902:8d6389ee4a3f
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Mon Aug 21 02:35:13 2017 +0000

description:
fix localcount leak in sav. fixed by ozaki-r@n.o.

I commit on behalf of him.

diffstat:

 sys/netipsec/key.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r aa0ddf7c10fd -r 8d6389ee4a3f sys/netipsec/key.c
--- a/sys/netipsec/key.c        Mon Aug 21 00:56:22 2017 +0000
+++ b/sys/netipsec/key.c        Mon Aug 21 02:35:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.223 2017/08/09 09:48:11 ozaki-r Exp $        */
+/*     $NetBSD: key.c,v 1.224 2017/08/21 02:35:13 knakahara Exp $      */
 /*     $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $        */
 /*     $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $   */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.223 2017/08/09 09:48:11 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.224 2017/08/21 02:35:13 knakahara Exp $");
 
 /*
  * This code is referd to RFC 2367
@@ -8291,6 +8291,7 @@
                return;
 
        key_unlink_sav(sav);
+       localcount_fini(&sav->localcount); /* XXXX fixed by ozaki-r */
        SAVLIST_ENTRY_DESTROY(sav);
        key_init_sav(sav);
 



Home | Main Index | Thread Index | Old Index