aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp53')
-rw-r--r--net-mgmt/net-snmp53/Makefile2
-rw-r--r--net-mgmt/net-snmp53/files/patch-agent.xs36
2 files changed, 37 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
index 11aaceda9c23..798559723bc1 100644
--- a/net-mgmt/net-snmp53/Makefile
+++ b/net-mgmt/net-snmp53/Makefile
@@ -7,7 +7,7 @@
PORTNAME= snmp
PORTVERSION= 5.2.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
diff --git a/net-mgmt/net-snmp53/files/patch-agent.xs b/net-mgmt/net-snmp53/files/patch-agent.xs
new file mode 100644
index 000000000000..15862d39d7c2
--- /dev/null
+++ b/net-mgmt/net-snmp53/files/patch-agent.xs
@@ -0,0 +1,36 @@
+--- perl/agent/agent.xs.old 2006/09/01 21:05:50 5.15.2.3
++++ perl/agent/agent.xs 2007/01/06 00:35:12 5.15.2.4
+@@ -569,7 +569,7 @@
+ arg = newSVrv(rarg, "netsnmp_oidPtr");
+ sv_setiv(arg, (IV) o);
+
+- XPUSHs(rarg);
++ XPUSHs(sv_2mortal(rarg));
+
+ PUTBACK;
+ i = perl_call_pv("NetSNMP::OID::newwithptr", G_SCALAR);
+@@ -608,7 +608,7 @@
+ arg = newSVrv(rarg, "netsnmp_oidPtr");
+ sv_setiv(arg, (IV) o);
+
+- XPUSHs(rarg);
++ XPUSHs(sv_2mortal(rarg));
+
+ PUTBACK;
+ i = perl_call_pv("NetSNMP::OID::newwithptr", G_SCALAR);
+@@ -997,11 +997,13 @@
+ rarg = newSViv(0);
+ arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_request_infoPtr");
+ sv_setiv(arg, (IV) request);
+- ST(0) = rarg;
++ RETVAL = rarg;
+ } else {
+- ST(0) = &sv_undef;
++ RETVAL = &sv_undef;
+ }
+ }
++ OUTPUT:
++ RETVAL
+
+ MODULE = NetSNMP::agent PACKAGE = NetSNMP::agent::netsnmp_agent_request_info PREFIX = narqi_
+