]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFstable/11 r310877:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 31 Dec 2016 00:01:21 +0000 (00:01 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 31 Dec 2016 00:01:21 +0000 (00:01 +0000)
commit57cae4f6e7224f55fb9aabbe7f62b2b55a24f9ae
tree7d3681e5f853c9478e15fbd8ef455469893f1364
parent35f74efd6bef0e6e2f69ea02eea618fe3390335c
MFstable/11 r310877:

MFC r310455:

Clarify failure in snmp_output(..) with call to snmp_pdu_decode

- Explicitly test snmp_pdu_encode against SNMP_CODE_OK instead of assuming
  any non-zero value is bad.
- Print out the code before calling abort() to give the end-user something
  actionable to debug without having to recompile the binary, since the
  core might not have these details.

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