snmp plugin: Fix an off by one error.
authorFlorian Forster <octo@noris.net>
Wed, 27 Aug 2008 10:08:33 +0000 (12:08 +0200)
committerFlorian Forster <octo@noris.net>
Wed, 27 Aug 2008 10:08:33 +0000 (12:08 +0200)
commitc9a388f97676477d05b4bbc8b56bbdaed76c52b1
tree81de33732c3cbf95f96d5001c069795f991ba236
parentaec20e4438a754fe2df160e01adea9f1285fe8af
snmp plugin: Fix an off by one error.

The last character of an table instance was truncated. Fortunately empty
strings were caught, so that uninitialized memory was never accessed.

This patch also reverts f782b378: If returning with an error when a string
is empty causes the entire read to fail.
src/snmp.c