]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r295202:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Feb 2016 22:53:03 +0000 (22:53 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Feb 2016 22:53:03 +0000 (22:53 +0000)
commit0dc5479474fc3b0b865ff3146311ef2c7abca07c
tree6b1b784ea602712ddf2166163226674f1500dc3c
parentee44b1dcd1fe384694237750d57859e78a6cd62f
MFC r295202:

 Try to fix a bug introduced in r228623 (head).
 We started to copy the ifa_msghdr as otherwise platforms with strict
 alignment would break.  It is unclear to me if there's also a problem with
 access to the address list following the structure.
 However we never copied the address list after the structure and thus are
 pointing at random memory.  For now just use a pointer to the original
 memory for accessing the address list making it at least work on
 platforms with weak memory access.

 PR:                   195445
 Reported by:          wolfgang lyxys.ka.sub.org
 Tested by:            wolfgang lyxys.ka.sub.org (x86)

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@295386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmp_mibII/mibII.c