SOURCES: net-snmp-src-dst-confusion.patch (NEW) - http://net-snmp.svn.sourc...

baggins baggins at pld-linux.org
Mon Apr 20 01:27:36 CEST 2009


Author: baggins                      Date: Sun Apr 19 23:27:35 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=17367
  fix for CVE-2008-6123

---- Files affected:
SOURCES:
   net-snmp-src-dst-confusion.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/net-snmp-src-dst-confusion.patch
diff -u /dev/null SOURCES/net-snmp-src-dst-confusion.patch:1.1
--- /dev/null	Mon Apr 20 01:27:36 2009
+++ SOURCES/net-snmp-src-dst-confusion.patch	Mon Apr 20 01:27:30 2009
@@ -0,0 +1,18 @@
+--- branches/V5-4-patches/net-snmp/snmplib/snmpUDPDomain.c	2009/01/28 09:29:09	17366
++++ branches/V5-4-patches/net-snmp/snmplib/snmpUDPDomain.c	2009/01/28 10:10:06	17367
+@@ -110,12 +110,12 @@
+ 	char tmp[64];
+         to = (struct sockaddr_in *) &(addr_pair->remote_addr);
+         if (to == NULL) {
+-            sprintf(tmp, "UDP: [%s]->unknown",
++            sprintf(tmp, "UDP: unknown->[%s]",
+                     inet_ntoa(addr_pair->local_addr));
+         } else {
+-            sprintf(tmp, "UDP: [%s]->", inet_ntoa(addr_pair->local_addr));
+-            sprintf(tmp + strlen(tmp), "[%s]:%hd",
++            sprintf(tmp, "UDP: [%s]:%hu->",
+                     inet_ntoa(to->sin_addr), ntohs(to->sin_port));
++            sprintf(tmp + strlen(tmp), "[%s]", inet_ntoa(addr_pair->local_addr));
+         }
+         return strdup(tmp);
+     }
================================================================


More information about the pld-cvs-commit mailing list