]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311263:
authorngie <ngie@FreeBSD.org>
Sat, 4 Feb 2017 15:45:39 +0000 (15:45 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 4 Feb 2017 15:45:39 +0000 (15:45 +0000)
commit2b1b84b411c899c171f9d3fbdbd16f76b1007ddf
tree5468d5e441805c167474d6656119ee363ff89247
parentdc202296d1079d0218c9188ad77a0e037cf12518
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
contrib/bsnmp/lib/snmpclient.c