Hello,
Is the argument oid *viewSubtree in the function
void vacm_destroyViewEntry(const char *viewName, oid *viewSubtree, size_t viewSubtreeLen)
a pointer to oid starting with root oid?
If so, than we couldn't compare it like this:
   if (!strcmp(vp->viewName + 1, viewName)
       && vp->viewSubtreeLen == viewSubtreeLen
here--->&& !memcmp((char *) vp->viewSubtree, (char *) viewSubtree, viewSubtreeLen *sizeof(oid)))
because in vp->viewSubtree first oid contain viewSubtreeLen!
In the last release this function named netsnmp_view_destroy, and I don't find any bug in Bug report database.
Does I miss something?


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to