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
Step 1. Fetch and check out the branch for this merge request
git fetch origin git checkout -b kostis_snmp_odd_payload_bug origin/kostis_snmp_odd_payload_bug
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git fetch origin git checkout origin/wrpc-v5 git merge --no-ff kostis_snmp_odd_payload_bug
Step 4. Push the result of the merge to GitLab
git push origin wrpc-v5
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.