Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec Remove extra KEY_FREESAV from ipsec_process_done



details:   https://anonhg.NetBSD.org/src/rev/047c07e7f41a
branches:  trunk
changeset: 355216:047c07e7f41a
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Jul 19 09:03:52 2017 +0000

description:
Remove extra KEY_FREESAV from ipsec_process_done

It should be done by the caller.

diffstat:

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

diffs (26 lines):

diff -r 9f83d3a2580e -r 047c07e7f41a sys/netipsec/ipsec_output.c
--- a/sys/netipsec/ipsec_output.c       Wed Jul 19 09:03:08 2017 +0000
+++ b/sys/netipsec/ipsec_output.c       Wed Jul 19 09:03:52 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_output.c,v 1.54 2017/07/14 12:26:26 ozaki-r Exp $        */
+/*     $NetBSD: ipsec_output.c,v 1.55 2017/07/19 09:03:52 ozaki-r Exp $        */
 
 /*-
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.54 2017/07/14 12:26:26 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.55 2017/07/19 09:03:52 ozaki-r Exp $");
 
 /*
  * IPsec output processing.
@@ -275,7 +275,6 @@
        return ipsec_reinject_ipstack(m, saidx->dst.sa.sa_family);
 bad:
        m_freem(m);
-       KEY_FREESAV(&sav);
        return (error);
 }
 



Home | Main Index | Thread Index | Old Index