sharpsnmplib icon indicating copy to clipboard operation
sharpsnmplib copied to clipboard

Integer32.ToErrorCode() throws an exception

Open AlexanderFuh opened this issue 1 year ago • 1 comments

ToErrorCode() should not throw exceptions as the method is invoked by error message display and ToString() methods. Also, as the ErrorCode field of a SNMP packet is read/parsed by this class, a device might brake applications/create a DOS by simply sending an error code unknown to the lib. We'd loose compatibility and introduce issues without any need or gain.

AlexanderFuh avatar Nov 14 '23 13:11 AlexanderFuh

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 14 '23 13:11 CLAassistant