Blame SOURCES/net-snmp-5.7.2-python-ipaddress-size.patch

8a419f
895357 - net-snmp-python adds zeros to end of IP address (IPADDR type), which is not valid
8a419f
8a419f
Source: upstream commit 234158b8e84cc204cbac96e6e9be6959635404b8
8a419f
8a419f
 --- a/python/netsnmp/client_intf.c	
8a419f
+++ a/python/netsnmp/client_intf.c	
8a419f
@@ -821,14 +821,14 @@ OCT:
8a419f
 
8a419f
       case TYPE_IPADDR:
8a419f
         vars->type = ASN_IPADDRESS;
8a419f
-        vars->val.integer = (long *)malloc(sizeof(long));
8a419f
+        vars->val.integer = (in_addr_t *)malloc(sizeof(in_addr_t));
8a419f
         if (val)
8a419f
             *(vars->val.integer) = inet_addr(val);
8a419f
         else {
8a419f
             ret = FAILURE;
8a419f
             *(vars->val.integer) = 0;
8a419f
         }
8a419f
-        vars->val_len = sizeof(long);
8a419f
+        vars->val_len = sizeof(in_addr_t);
8a419f
         break;
8a419f
 
8a419f
       case TYPE_OBJID: