Blame SOURCES/net-snmp-5.7.2-response-too-long.patch

9a6c41
diff -urNp old/snmplib/snmp_api.c new/snmplib/snmp_api.c
9a6c41
--- old/snmplib/snmp_api.c	2017-01-16 10:11:37.951994525 +0100
9a6c41
+++ new/snmplib/snmp_api.c	2017-01-16 10:18:42.284631137 +0100
9a6c41
@@ -4931,7 +4931,7 @@ _sess_async_send(void *sessp,
9a6c41
      * specified in the received PDU.  
9a6c41
      */
9a6c41
 
9a6c41
-    if (session->sndMsgMaxSize != 0 && length > session->sndMsgMaxSize) {
9a6c41
+    if (pdu->version == SNMP_VERSION_3 && session->sndMsgMaxSize != 0 && length > session->sndMsgMaxSize) {
9a6c41
         DEBUGMSGTL(("sess_async_send",
9a6c41
                     "length of packet (%lu) exceeds session maximum (%lu)\n",
9a6c41
                     (unsigned long)length, (unsigned long)session->sndMsgMaxSize));