Module Name: src Committed By: ozaki-r Date: Wed Oct 19 01:10:15 UTC 2016
Modified Files: src/sys/netinet: ip_icmp.c Log Message: Set ia to ensure to call ia4_release To generate a diff of this commit: cvs rdiff -u -r1.151 -r1.152 src/sys/netinet/ip_icmp.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/netinet/ip_icmp.c diff -u src/sys/netinet/ip_icmp.c:1.151 src/sys/netinet/ip_icmp.c:1.152 --- src/sys/netinet/ip_icmp.c:1.151 Mon Aug 1 03:15:30 2016 +++ src/sys/netinet/ip_icmp.c Wed Oct 19 01:10:15 2016 @@ -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 @@ icmp_reflect(struct mbuf *m) 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);