]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r315206:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Mar 2017 03:18:16 +0000 (03:18 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Mar 2017 03:18:16 +0000 (03:18 +0000)
commit3ee3b07c36f54bf6a6059060d3f6bc20f4fbd9a5
treeefdee0cb0488644463b35a252bfb8ce74ead1e75
parentae80d49303238d14080a54bc982f212cc3809815
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/9@315613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmpd/main.c