(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.2 and 1.4

version 1.3.2.2, 2006/11/08 22:58:06 version 1.4, 2006/04/18 18:36:33
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 463 
Line 464 
     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 484 
Line 481 
  
         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 568 
Line 566 
                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.2  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2