From 10a969fb73c59ee213f2fe351280155d3e7814ce Mon Sep 17 00:00:00 2001 From: kuriyama Date: Sun, 29 Feb 2004 12:26:59 +0000 Subject: Avoid "kvm_read: Bad address" error. PR: ports/63026 Submitted by: Antoine Jacoutot --- net-mgmt/net-snmp-devel/Makefile | 2 +- net-mgmt/net-snmp-devel/files/patch-auto_nlist.c | 10 ++++++++++ net-mgmt/net-snmp/Makefile | 2 +- net-mgmt/net-snmp/files/patch-auto_nlist.c | 10 ++++++++++ net-mgmt/net-snmp53/Makefile | 2 +- net-mgmt/net-snmp53/files/patch-auto_nlist.c | 10 ++++++++++ 6 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 net-mgmt/net-snmp-devel/files/patch-auto_nlist.c create mode 100644 net-mgmt/net-snmp/files/patch-auto_nlist.c create mode 100644 net-mgmt/net-snmp53/files/patch-auto_nlist.c (limited to 'net-mgmt') diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile index 1809774e30a..ba56db36fcf 100644 --- a/net-mgmt/net-snmp-devel/Makefile +++ b/net-mgmt/net-snmp-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= net-snmp PORTVERSION= 5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp diff --git a/net-mgmt/net-snmp-devel/files/patch-auto_nlist.c b/net-mgmt/net-snmp-devel/files/patch-auto_nlist.c new file mode 100644 index 00000000000..79feff8f64e --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-auto_nlist.c @@ -0,0 +1,10 @@ +--- agent/auto_nlist.c.orig Sun Feb 29 21:24:25 2004 ++++ agent/auto_nlist.c Sun Feb 29 21:24:43 2004 +@@ -57,6 +57,7 @@ + } + if (*ptr == 0) { + *ptr = (struct autonlist *) malloc(sizeof(struct autonlist)); ++ memset(*ptr, 0, sizeof(struct autonlist)); + it = *ptr; + it->left = 0; + it->right = 0; diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 1809774e30a..ba56db36fcf 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,7 +7,7 @@ PORTNAME= net-snmp PORTVERSION= 5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp diff --git a/net-mgmt/net-snmp/files/patch-auto_nlist.c b/net-mgmt/net-snmp/files/patch-auto_nlist.c new file mode 100644 index 00000000000..79feff8f64e --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-auto_nlist.c @@ -0,0 +1,10 @@ +--- agent/auto_nlist.c.orig Sun Feb 29 21:24:25 2004 ++++ agent/auto_nlist.c Sun Feb 29 21:24:43 2004 +@@ -57,6 +57,7 @@ + } + if (*ptr == 0) { + *ptr = (struct autonlist *) malloc(sizeof(struct autonlist)); ++ memset(*ptr, 0, sizeof(struct autonlist)); + it = *ptr; + it->left = 0; + it->right = 0; diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile index 1809774e30a..ba56db36fcf 100644 --- a/net-mgmt/net-snmp53/Makefile +++ b/net-mgmt/net-snmp53/Makefile @@ -7,7 +7,7 @@ PORTNAME= net-snmp PORTVERSION= 5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp diff --git a/net-mgmt/net-snmp53/files/patch-auto_nlist.c b/net-mgmt/net-snmp53/files/patch-auto_nlist.c new file mode 100644 index 00000000000..79feff8f64e --- /dev/null +++ b/net-mgmt/net-snmp53/files/patch-auto_nlist.c @@ -0,0 +1,10 @@ +--- agent/auto_nlist.c.orig Sun Feb 29 21:24:25 2004 ++++ agent/auto_nlist.c Sun Feb 29 21:24:43 2004 +@@ -57,6 +57,7 @@ + } + if (*ptr == 0) { + *ptr = (struct autonlist *) malloc(sizeof(struct autonlist)); ++ memset(*ptr, 0, sizeof(struct autonlist)); + it = *ptr; + it->left = 0; + it->right = 0; -- cgit