Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Set ia to ensure to call ia4_release
details: https://anonhg.NetBSD.org/src/rev/d2b19f6dd0d7
branches: trunk
changeset: 348449:d2b19f6dd0d7
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Oct 19 01:10:15 2016 +0000
description:
Set ia to ensure to call ia4_release
diffstat:
sys/netinet/ip_icmp.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r b97b6143e64e -r d2b19f6dd0d7 sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c Wed Oct 19 00:19:13 2016 +0000
+++ b/sys/netinet/ip_icmp.c Wed Oct 19 01:10:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_icmp.c,v 1.151 2016/08/01 03:15:30 ozaki-r Exp $ */
+/* $NetBSD: ip_icmp.c,v 1.152 2016/10/19 01:10:15 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.151 2016/08/01 03:15:30 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.152 2016/10/19 01:10:15 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -795,7 +795,8 @@
if (ifa->ifa_addr->sa_family != AF_INET)
continue;
sin = &(ifatoia(ifa)->ia_addr);
- ia4_acquire(ifatoia(ifa), &psref_ia);
+ ia = ifatoia(ifa);
+ ia4_acquire(ia, &psref_ia);
break;
}
pserialize_read_exit(s);
Home |
Main Index |
Thread Index |
Old Index