(file) Return to snmpDeliverTrap_netsnmp.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp between version 1.3.2.1 and 1.3.2.2

version 1.3.2.1, 2006/04/19 22:33:44 version 1.3.2.2, 2006/11/08 22:58:06
Line 438 
Line 438 
     PEG_METHOD_EXIT ();     PEG_METHOD_EXIT ();
 } }
  
   
 // Pack trap information into the PDU // Pack trap information into the PDU
 void snmpDeliverTrap_netsnmp::_packTrapInfoIntoPdu( void snmpDeliverTrap_netsnmp::_packTrapInfoIntoPdu(
     const String & trapOid,     const String & trapOid,
Line 464 
Line 463 
     CString trapOidCStr = trapOid.getCString();     CString trapOidCStr = trapOid.getCString();
  
     char * trapOidCopy = strdup(trapOidCStr);     char * trapOidCopy = strdup(trapOidCStr);
       char * numericEntOid = (char *) malloc(strlen(trapOidCStr));
   
       try
       {
  
 #if !defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) #if !defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
     char *last;     char *last;
Line 481 
Line 484 
  
     enterpriseOidLength = MAX_OID_LEN;     enterpriseOidLength = MAX_OID_LEN;
  
     char * numericEntOid = (char *) malloc(strlen(trapOidCStr));  
     if (Contains(standard_traps, trapOid))     if (Contains(standard_traps, trapOid))
     {     {
         //         //
Line 566 
Line 568 
            enterpriseOidLength * sizeof(oid));            enterpriseOidLength * sizeof(oid));
  
     snmpPdu->enterprise_length = enterpriseOidLength;     snmpPdu->enterprise_length = enterpriseOidLength;
       }
       catch (...)
       {
           free(trapOidCopy);
           free(numericEntOid);
   
           PEG_METHOD_EXIT();
           throw;
       }
  
     free(trapOidCopy);     free(trapOidCopy);
     free(numericEntOid);     free(numericEntOid);


Legend:
Removed from v.1.3.2.1  
changed lines
  Added in v.1.3.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2