Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Fix that prev isn't cleared on retry
details: https://anonhg.NetBSD.org/src/rev/8c66fb7b7e68
branches: trunk
changeset: 355669:8c66fb7b7e68
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Aug 09 06:04:41 2017 +0000
description:
Fix that prev isn't cleared on retry
diffstat:
sys/netipsec/key.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r a4d9f2eabe1c -r 8c66fb7b7e68 sys/netipsec/key.c
--- a/sys/netipsec/key.c Wed Aug 09 04:45:38 2017 +0000
+++ b/sys/netipsec/key.c Wed Aug 09 06:04:41 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.220 2017/08/09 04:29:36 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.221 2017/08/09 06:04:41 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.220 2017/08/09 04:29:36 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.221 2017/08/09 06:04:41 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -6670,10 +6670,11 @@
static void
key_acquire_sendup_pending_mbuf(void)
{
- struct mbuf *m, *prev = NULL;
+ struct mbuf *m, *prev;
int error;
again:
+ prev = NULL;
mutex_enter(&key_misc.lock);
m = key_acquire_mbuf_head;
/* Get an earliest mbuf (one at the tail of the list) */
Home |
Main Index |
Thread Index |
Old Index