Date: Sat, 27 Jun 2009 11:05:53 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet6 in6.c Message-ID: <200906271106.n5RB6CZx011998@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-06-27 11:05:53 UTC FreeBSD src repository Modified files: sys/netinet6 in6.c Log: SVN rev 195102 on 2009-06-27 11:05:53Z by rwatson In in6_update_ifa(), jump to 'cleanup' rather than returning directly in one additional case, avoiding an ifaddr reference leak. Defer releasing the in6_ifaddr's in6_ifaddrhead reference until the end of in6_unlink_ifa(), as callers are inconsistent regarding whether or not they hold a reference across the call. This avoids using the ifaddr after it may have been freed. Reported by: tegge Reviewed by: tegge Approved by: re (blanket) MFC after: 6 weeks Revision Changes Path 1.117 +7 -4 src/sys/netinet6/in6.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906271106.n5RB6CZx011998>