aboutsummaryrefslogtreecommitdiffstats
path: root/main/net-snmp/CVE-2008-6123.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-04 06:17:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-04 06:17:56 +0000
commitdab0955e5a18fa5e7f88ed9f918f3594549587ee (patch)
tree51ef8d83ef95c7a4543e473d44cf53636f3681a5 /main/net-snmp/CVE-2008-6123.patch
parent5e9ddf38f85f18bb4cf62baf88a61af88fd8489b (diff)
downloadaports-dab0955e5a18fa5e7f88ed9f918f3594549587ee.tar.gz
aports-dab0955e5a18fa5e7f88ed9f918f3594549587ee.tar.bz2
aports-dab0955e5a18fa5e7f88ed9f918f3594549587ee.tar.xz
main/net-snmp: CVE-2008-6123, fix textrels
Diffstat (limited to 'main/net-snmp/CVE-2008-6123.patch')
-rw-r--r--main/net-snmp/CVE-2008-6123.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/net-snmp/CVE-2008-6123.patch b/main/net-snmp/CVE-2008-6123.patch
new file mode 100644
index 0000000000..b4b06f63e9
--- /dev/null
+++ b/main/net-snmp/CVE-2008-6123.patch
@@ -0,0 +1,19 @@
+diff -Naur snmplib.orig/snmpUDPDomain.c snmplib/snmpUDPDomain.c
+--- snmplib.orig/snmpUDPDomain.c 2007-10-11 22:46:30.000000000 +0200
++++ snmplib/snmpUDPDomain.c 2009-07-10 23:41:37.000000000 +0200
+@@ -104,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);
+ }