[AGENT++] RE: agentx++win32master does not return all OIDs during walk

Frank Fock fock at agentpp.com
Thu Aug 11 08:56:49 CEST 2005


Hi Samuel,

I do not think that the fix is correct, because from my opinion it
causes an endless loop when access is denied to a table (or part
of it). The causing problem is, that some of the Win subagent DLLs
have many bugs. One of these bugs is that they do not handle
search regions correctly. A better place for a fix then, would be
the ExtensionDLL class, because this problem is specific to the
Win subagent DLLs.

Hope this helps.

Best regards,
Frank

Samuel Lokshin wrote:

>  
>
>> -----Original Message-----
>>From: 	Samuel Lokshin  
>>Sent:	Wednesday, August 10, 2005 7:58 PM
>>To:	'agentpp at agentpp.org'
>>Subject:	agentx++win32master does not return all OIDs during walk
>>
>>I think I found the solution.
>>    
>>
>	In the mib.cpp file 
>	in the function int Mib::next_access_control(Request* req, const MibEntryPtr entry, Oidx& oid)
>
>	I changed 
>
>		case AGENTPP_TABLE: 
>		case AGENTPP_COMPLEX:
>		case AGENTPP_PROXY: {
>			do {
>			  Oidx tmpoid(entry->find_succ(oid, req)); 
>			  if (tmpoid.len() <= 0) {
>	              oid = (oid < *entry->key()) ? *entry->key() : *entry->max_key();//this line was changed!!
>				return VACM_notInView;
>			  }
>
>	Please tell me if that it is the correct change.
>
>  
>
>>Thank you.
>>Sam
>>
>>
>>    
>>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/agentpp
>
>
>  
>


-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the AGENTPP mailing list