Hello, all !
file snmp_secmod.c, function
int
unregister_sec_mod(int secmod)
{
struct snmp_secmod_list *sptr, *lptr;
for (sptr = registered_services, lptr = NULL; sptr;
lptr = sptr, sptr = sptr->next) {
if (sptr->securityModel == secmod) {
//------------- if secmod matches to first sptr, lptr is NULL
lptr->next = sptr->next;
SNMP_FREE(sptr->secDef);
SNMP_FREE(sptr);
return SNMPERR_SUCCESS;
}
}
/*
* not registered
*/
return SNMPERR_GENERR;
}
Aleksandr Lomanov
ICQ#: 170411676
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders