snmp plugin: Fix handling of strings with control characters.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 9 Nov 2009 11:04:23 +0000 (12:04 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 9 Nov 2009 11:04:23 +0000 (12:04 +0100)
commitce372f2e17c41333a4d0a07afce585d1a31b8754
tree5fbdd38b0f680411e299e151ed744c11b551ee47
parent80c2683a96b5ca56069b9ac27febdeaee91914a5
snmp plugin: Fix handling of strings with control characters.

If a byte of a string has a value <32, the string is printed as a
hex-string. This fixes issues with some devices returning MAC addresses
as "strings".
src/snmp.c