Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net fix a potential bug of gif(4) check for tunnel dupli...
details: https://anonhg.NetBSD.org/src/rev/c6049cb2239f
branches: trunk
changeset: 998578:c6049cb2239f
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Apr 22 08:09:59 2019 +0000
description:
fix a potential bug of gif(4) check for tunnel duplicate.
This problem has not actualized thanks to check for duplicate
in encap_attach().
diffstat:
sys/net/if_gif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2a5c0ebf29b8 -r c6049cb2239f sys/net/if_gif.c
--- a/sys/net/if_gif.c Mon Apr 22 08:05:00 2019 +0000
+++ b/sys/net/if_gif.c Mon Apr 22 08:09:59 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.145 2018/11/12 03:37:33 knakahara Exp $ */
+/* $NetBSD: if_gif.c,v 1.146 2019/04/22 08:09:59 knakahara Exp $ */
/* $KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.145 2018/11/12 03:37:33 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.146 2019/04/22 08:09:59 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1029,7 +1029,7 @@
if (sc2 == sc)
continue;
- var2 = gif_getref_variant(sc, &psref);
+ var2 = gif_getref_variant(sc2, &psref);
if (!var2->gv_pdst || !var2->gv_psrc) {
gif_putref_variant(var2, &psref);
continue;
Home |
Main Index |
Thread Index |
Old Index