fix-request-id-0

Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2019-02-07

Gbp-Pq: Name fix-request-id-0.patch
This commit is contained in:
Net-SNMP Packaging Team 2022-06-27 15:01:26 +08:00 committed by Lu zhiping
parent 018ff47475
commit d7e1294035
1 changed files with 3 additions and 0 deletions

View File

@ -5367,6 +5367,9 @@ _sess_async_send(void *sessp,
/* /*
* No response expected... * No response expected...
*/ */
if ((reqid == 0) && (pdu->command == SNMP_MSG_RESPONSE)) {
reqid = 2;
}
if (reqid) { if (reqid) {
/* /*
* Free v1 or v2 TRAP PDU iff no error * Free v1 or v2 TRAP PDU iff no error