Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Add missing splx to key_spdexpire
details: https://anonhg.NetBSD.org/src/rev/e7cad60e11c4
branches: trunk
changeset: 357677:e7cad60e11c4
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Nov 21 06:52:51 2017 +0000
description:
Add missing splx to key_spdexpire
diffstat:
sys/netipsec/key.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r bab2972bf753 -r e7cad60e11c4 sys/netipsec/key.c
--- a/sys/netipsec/key.c Tue Nov 21 06:51:54 2017 +0000
+++ b/sys/netipsec/key.c Tue Nov 21 06:52:51 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.237 2017/11/21 06:51:54 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.238 2017/11/21 06:52:51 ozaki-r 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.237 2017/11/21 06:51:54 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.238 2017/11/21 06:52:51 ozaki-r Exp $");
/*
* This code is referred to RFC 2367
@@ -3065,7 +3065,8 @@
mtod(result, struct sadb_msg *)->sadb_msg_len =
PFKEY_UNIT64(result->m_pkthdr.len);
- return key_sendup_mbuf(NULL, result, KEY_SENDUP_REGISTERED);
+ error = key_sendup_mbuf(NULL, result, KEY_SENDUP_REGISTERED);
+ result = NULL;
fail:
if (result)
Home |
Main Index |
Thread Index |
Old Index