~ubuntu-branches/ubuntu/intrepid/net-snmp/intrepid-proposed

« back to all changes in this revision

Viewing changes to apps/snmptrapd_handlers.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2006-11-28 12:29:34 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128122934-82xxzy2zcvypnvy7
Tags: 5.2.3-4ubuntu1
* Merge from debian unstable, remaining changes:
  - remove stop links from rc0 and rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
905
905
    session.peername = cp;
906
906
    session.version  = pdu->version;
907
907
    ss = snmp_open( &session );
 
908
    if (!ss)
 
909
        return NETSNMPTRAPD_HANDLER_FAIL;
 
910
 
 
911
    /* XXX: wjh we should be caching sessions here and not always
 
912
       reopening a session.  It's very ineffecient, especially with v3
 
913
       INFORMS which may require engineID probing */
908
914
 
909
915
    pdu2 = snmp_clone_pdu(pdu);
910
916
    if (pdu2->transport_data) {