]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bsnmpd(1) crash with ill-formed Discovery message
authorShteryana Shopova <syrinx@FreeBSD.org>
Fri, 1 Oct 2021 11:10:39 +0000 (14:10 +0300)
committerShteryana Shopova <syrinx@FreeBSD.org>
Fri, 1 Oct 2021 11:10:39 +0000 (14:10 +0300)
commit8b959dd6a3921c35395bef4a6d7ad2426a3bd88e
tree233cd757de740aebfac98d2b106dea2cd24b7146
parent18c2139495401bcc6d0fbc0119daf2103327c3a4
Fix bsnmpd(1) crash with ill-formed Discovery message

RFC 3414 Section 4. Discovery specifies that a discovery request message has a
varBindList left empty. Nonetheless, bsnmpd(1) should not crash when receiving
a non-zero var-bindings list in a Discovery Request message.

PR: 255214
MFC after: 2 weeks
contrib/bsnmp/snmpd/main.c