snmp plugin: Fix compilation issue.

Thanks to Magnus for pointing this out.