]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311263:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Feb 2017 15:45:51 +0000 (15:45 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Feb 2017 15:45:51 +0000 (15:45 +0000)
commitade05701ef8deca9e5ba10355e5607f03115deb5
treec9fe4dd4e001cbafe426952d41964adb51ecc131
parentc3330576537af33a5685789a8a152d68eb45fe94
MFC r311263:

Use calloc instead of malloc with buffers in snmp_{recv,send}_packet

This doesn't fix the issue noted in the PR, but at the very least it
cleans up the error so it looks a bit more sane, and in the event
that bsnmp did wander off into the weeds, the likelihood of it
crashing with more sensible output is greater, in my opinion

MFC counter set high so I have enough time to resolve the real
underlying bug in bsnmpwalk

PR: 215721

git-svn-id: svn://svn.freebsd.org/base/stable/10@313201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/lib/snmpclient.c