This solves https://sourceforge.net/p/net-snmp/bugs/2874/
The last part of this patch looks suspicious to me. Are you sure the following changes are correct?
if (!debug_entry) continue; - status = (debug_entry->enabled ? RS_ACTIVE : RS_NOTINSERVICE); + status = debug_entry->enabled; snmp_set_var_typed_value(request->requestvb, ASN_INTEGER, (u_char*)&status, sizeof(status));
if (debug_entry) - debug_entry->enabled = - (*request->requestvb->val.integer == RS_ACTIVE); + debug_entry->enabled = *request->requestvb->val.integer; break
It' sort of correct, BUT appended is a much simplier patch fixing the problem at the root.
Is the last version of the patch OK?
Thanks for the patch. It has been applied on the v5.8 and master branches.
Log in to post a comment.
The last part of this patch looks suspicious to me. Are you sure the following changes are correct?
It' sort of correct, BUT appended is a much simplier patch fixing the problem at the root.
Is the last version of the patch OK?
Thanks for the patch. It has been applied on the v5.8 and master branches.