commit b889d8a7ced855858df3706944d4fae30831f488 from: Martijn van Duren date: Mon Nov 2 20:27:54 2026 UTC Make sure a get-request doesn't increase indices commit - 915d0dc77c554f96ec65d9007a6ab7fb1fee4758 commit + b889d8a7ced855858df3706944d4fae30831f488 blob - 82515867e99f3e9690350237c4788b87d29cfda9 blob + 54f601b1767f92eec3a967d9e4c736abee482abf --- main.c +++ main.c @@ -898,6 +898,11 @@ extends_output2_table(struct agentx_varbind *vb) agentx_varbind_notfound(vb); return; } + if (agentx_varbind_request(vb) == AGENTX_REQUEST_TYPE_GET && + strcmp(cmd->token, search.token) != 0) { + agentx_varbind_notfound(vb); + return; + } if (!extends_cmd_ready(cmd)) { if ((cache = malloc(sizeof(*cache))) == NULL) fatal(NULL);