Fix SNMP encoding length bug

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>