Robert,
i will try it tomorrow afternoon and report to you.
Kind Regards,
Sven
> On Wed, 20 Oct 2004 11:13:49 -0400 Robert wrote:
> RS> I looked at the code, and I see the problem. I should have a patch
> shortly.
>
> Can you try this patch and tell me if it fixes the problem?
>
> Index: agent/helpers/table_dataset.c
> ===================================================================
> RCS file: /cvsroot/net-snmp/net-snmp/agent/helpers/table_dataset.c,v
> retrieving revision 5.24
> diff -u -r5.24 table_dataset.c
> --- agent/helpers/table_dataset.c 5 Jul 2004 12:59:22 -0000 5.24
> +++ agent/helpers/table_dataset.c 20 Oct 2004 16:06:52 -0000
> @@ -452,6 +452,11 @@
> (reginfo->rootoid_len + 2);
>
> if (MODE_IS_SET(reqinfo->mode)) {
> +
> + char buf[256]; /* is this reasonable size?? */
> + int rc;
> + size_t len;
> +
> /*
> * use a cached copy of the row for modification
> */
> @@ -460,9 +465,27 @@
> * cache location: may have been created already by other
> * SET requests in the same master request.
> */
> + rc = snprintf(buf, sizeof(buf), "dataset_row_stash:%s:",
> + handler->handler_name);
> + if ((-1 == rc) || (rc >= sizeof(buf))) {
> + snmp_log(LOG_ERR,"%s handler name too long\n",
> + handler->handler_name);
> + netsnmp_set_request_error(reqinfo, request,
> + SNMP_ERR_GENERR);
> + continue;
> + }
> + len = sizeof(buf) - rc;
> + rc = snprint_objid(&buf[rc], len, table_info->index_oid,
> + table_info->index_oid_len);
> + if (-1 == rc) {
> + snmp_log(LOG_ERR,"%s oid or name too long\n",
> + handler->handler_name);
> + netsnmp_set_request_error(reqinfo, request,
> + SNMP_ERR_GENERR);
> + continue;
> + }
> stashp = (netsnmp_oid_stash_node **)
> - netsnmp_table_get_or_create_row_stash(reqinfo,
> -
> "dataset_row_stash");
> + netsnmp_table_get_or_create_row_stash(reqinfo, buf);
>
> newrowstash
> = netsnmp_oid_stash_get_data(*stashp, suffix,
> suffix_len);
>
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> <irc://irc.freenode.net/#net-snmp>
> Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
>
> You are lost in a twisty maze of little standards, all different.
>
--
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders