Table helper

2009-05-09 Thread Magnus Fromreide
If I use the table helper with a table that have a variable length string index then how am I supposed to handle the following case: snmpgetnext thehost myEntryVar.1 myEntryVar.1.0 I expect this to return myEntryVar.1.0 and myEntryVar.1.1 but when I look at the contents of table_info->indexes it

Is this bug ?

2009-05-09 Thread Aleksandras N. Lomanovas
Hi all ! In file snmp_client.c function snmp_clone_var(): /* * need a pointer to copy a string value. */ if (var->val.string) { if (var->val.string != &var->buf[0]) { if (var->val_len <= sizeof(var->buf)) newvar->val.string = newvar->buf;