Re: still problems with exec and extend?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2006-03-30 at 16:56 +0100, Dave Shield wrote: > That problem was fixed by a patch listed in the thread > "exec problem with 5.1" > a couple of weeks ago. > > It's a very small fix, so I'll append the patch again <SIGH> OK - So that was the wrong patch. Try this one. (I am *definitely* in need of that holiday!) Dave
extend2.diff
(text/x-patch, 771 B)
--- extend.c.cln 2006-03-13 09:29:22.000000000 +0000
+++ extend.c 2006-03-15 18:14:18.000000000 +0000
@@ -1169,8 +1169,9 @@
* now we've found the appropriate entry (and line),
* we need to update the varbind OID ...
*/
- memcpy( oid_buf, extend_out2_oid, sizeof(extend_out2_oid));
- oid_len = OID_LENGTH(extend_out2_oid);
+ oid_len = ereg->oid_len;
+ memcpy( oid_buf, ereg->root_oid, oid_len*sizeof(oid));
+ oid_buf[ oid_len++ ] = 4; /* nsExtendOutput2Table */
oid_buf[ oid_len++ ] = 1; /* nsExtendOutput2Entry */
oid_buf[ oid_len++ ] = COLUMN_EXTOUT2_OUTLINE;
/* string token index */