Date: Tue, 9 Aug 2011 14:10:13 GMT From: Svatopluk Kraus <onwahe@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/159601: [patch] in_scrubprefix() - loopback route refcount malfunction Message-ID: <201108091410.p79EADZN021253@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/159601; it has been noted by GNATS. From: Svatopluk Kraus <onwahe@gmail.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: misc/159601: [patch] in_scrubprefix() - loopback route refcount malfunction Date: Tue, 9 Aug 2011 16:07:53 +0200 I'm sorry, the category should be [kern] and correct patch is following: Index: sys/netinet/in.c =================================================================== --- sys/netinet/in.c (revision 224705) +++ sys/netinet/in.c (working copy) @@ -1126,8 +1126,10 @@ RT_LOCK(ia_ro.ro_rt); if (ia_ro.ro_rt->rt_refcnt <= 1) freeit = 1; - else + else if (flags & LLE_STATIC) { RT_REMREF(ia_ro.ro_rt); + target->ia_flags &= ~IFA_RTSELF; + } RTFREE_LOCKED(ia_ro.ro_rt); } if (freeit && (flags & LLE_STATIC)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108091410.p79EADZN021253>