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/28f4c9f0fa28
branches:  trunk
changeset: 825517:28f4c9f0fa28
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 ba95f9d6ace4 -r 28f4c9f0fa28 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