]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r315206:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Mar 2017 03:13:03 +0000 (03:13 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Mar 2017 03:13:03 +0000 (03:13 +0000)
commit586bde5bd773c00c5ed66704e1f21f2d7a851005
treeb8fcb356de90f1f7ab3e1aae684e7d782efd0854
parent862e72d90def759f2ac4a0a5da70e27816e222f7
MFC r315206:

bsnmpd: fix segfault when trans_insert_port(..) is called with multiple
out of order addresses

Move `port->transport` initialization before the TAILQ_FOREACH(..) loop
to ensure that the value is properly initialized before it's inserted
into the TAILQ.

PR: 217760

git-svn-id: svn://svn.freebsd.org/base/stable/10@315612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmpd/main.c