Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Remove unnecessary KEY_FREESAV in an error path
details: https://anonhg.NetBSD.org/src/rev/f774c4ec86da
branches: trunk
changeset: 355560:f774c4ec86da
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Aug 03 04:42:26 2017 +0000
description:
Remove unnecessary KEY_FREESAV in an error path
sav should be freed (unreferenced) by the caller.
diffstat:
sys/netipsec/ipsec_input.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r a128c5eede86 -r f774c4ec86da sys/netipsec/ipsec_input.c
--- a/sys/netipsec/ipsec_input.c Thu Aug 03 03:16:26 2017 +0000
+++ b/sys/netipsec/ipsec_input.c Thu Aug 03 04:42:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec_input.c,v 1.49 2017/07/21 04:55:36 ozaki-r Exp $ */
+/* $NetBSD: ipsec_input.c,v 1.50 2017/08/03 04:42:26 ozaki-r Exp $ */
/* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec_input.c,v 1.2.4.2 2003/03/28 20:32:53 sam Exp $ */
/* $OpenBSD: ipsec_input.c,v 1.63 2003/02/20 18:35:43 deraadt Exp $ */
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_input.c,v 1.49 2017/07/21 04:55:36 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_input.c,v 1.50 2017/08/03 04:42:26 ozaki-r Exp $");
/*
* IPsec input processing.
@@ -344,7 +344,6 @@
IPSECLOG(LOG_DEBUG, "null mbuf");
IPSEC_ISTAT(sproto, ESP_STAT_BADKCR, AH_STAT_BADKCR,
IPCOMP_STAT_BADKCR);
- KEY_FREESAV(&sav);
return EINVAL;
}
Home |
Main Index |
Thread Index |
Old Index