[Pkg-net-snmp-commits] [pkg-net-snmp] 24/27: fix-request-id-0

Hideki Yamane henrich at moszumanska.debian.org
Sun Aug 28 02:19:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch patch-queue/master
in repository pkg-net-snmp.

commit fa359cc561cb2c8360655b793b43779e4dd00fe0
Author: Net-SNMP Packaging Team <pkg-net-snmp-devel at lists.alioth.debian.org>
Date:   Thu Jun 18 06:12:05 2015 +0900

    fix-request-id-0
    
    
    Gbp-Pq: Name fix-request-id-0.patch
---
 snmplib/snmp_api.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/snmplib/snmp_api.c b/snmplib/snmp_api.c
index 191debf..d2568bf 100644
--- a/snmplib/snmp_api.c
+++ b/snmplib/snmp_api.c
@@ -5025,6 +5025,9 @@ _sess_async_send(void *sessp,
         /*
          * No response expected...  
          */
+        if ((reqid == 0) && (pdu->command == SNMP_MSG_RESPONSE)) {
+            reqid = 2;
+        }
         if (reqid) {
             /*
              * Free v1 or v2 TRAP PDU iff no error  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-net-snmp/pkg-net-snmp.git



More information about the Pkg-net-snmp-commits mailing list