Skip to content

snmpset odd payload bug

Konstantinos Asteriou requested to merge kostis_snmp_odd_payload_bug into wrpc-v5

In snmpset when the value we wanna set is of odd size, the last byte was being overwritten because we receive another 2 bytes of 0s in the end. Changing the code to make use of pointer arithmetic and memcpy we can solve this issue

Edited by Konstantinos Asteriou

Merge request reports