Module Name: src Committed By: ozaki-r Date: Thu Aug 3 04:42:26 UTC 2017
Modified Files: src/sys/netipsec: ipsec_input.c Log Message: Remove unnecessary KEY_FREESAV in an error path sav should be freed (unreferenced) by the caller. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/netipsec/ipsec_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netipsec/ipsec_input.c diff -u src/sys/netipsec/ipsec_input.c:1.49 src/sys/netipsec/ipsec_input.c:1.50 --- src/sys/netipsec/ipsec_input.c:1.49 Fri Jul 21 04:55:36 2017 +++ src/sys/netipsec/ipsec_input.c Thu Aug 3 04:42:26 2017 @@ -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 @@ ipsec4_common_input_cb(struct mbuf *m, s IPSECLOG(LOG_DEBUG, "null mbuf"); IPSEC_ISTAT(sproto, ESP_STAT_BADKCR, AH_STAT_BADKCR, IPCOMP_STAT_BADKCR); - KEY_FREESAV(&sav); return EINVAL; }