On 07/04/07, Max <[EMAIL PROTECTED]> wrote:
The agent segfaults for snmpbulkwalk or snmpwalk of this OID tree
using a base of

.1.3.6.1.4.1.8072.1.3.2.4
.1.3.6.1.4.1.8072.1.3.2.4.1
.1.3.6.1.4.1.8072.1.3.2.4.1.2
.1.3.6.1.4.1.8072.1.3.2.4.1.2.1

Can you please try applying the enclosed patch.
Does that make any difference?

I don't think this is the full story, as I'm still getting some strange
results, but it seems to address the immediate crash.

Dave
Index: mibgroup/agent/extend.c
===================================================================
--- mibgroup/agent/extend.c	(revision 16015)
+++ mibgroup/agent/extend.c	(working copy)
@@ -1286,7 +1286,7 @@
                 /* 
                  * ... and how long it is.
                  */
-                if ( extension->numlines > line_idx )
+                if ( extension->lines && extension->numlines > line_idx )
                     len = (extension->lines[line_idx])-cp -1;
                 else if (cp)
                     len = strlen(cp);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to