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

« back to all changes in this revision

Viewing changes to agent/mibgroup/agentx/master.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2014-04-08 08:17:14 UTC
  • Revision ID: package-import@ubuntu.com-20140408081714-31du0g3p3ggkwe9o
Tags: 5.7.2~dfsg-8.1ubuntu3
* SECURITY UPDATE: denial of service via AgentX subagent timeout
  - debian/patches/CVE-2012-6151.patch: track cancelled sessions in
    agent/mibgroup/agentx/{master.c,master_admin.c}, agent/snmp_agent.c,
    include/net-snmp/agent/snmp_agent.h.
  - CVE-2012-6151
* SECURITY UPDATE: denial of service when ICMP-MIB is in use
  - debian/patches/CVE-2014-2284.patch: fix ICMP mib table handling in
    agent/mibgroup/mibII/icmp.c, agent/mibgroup/mibII/kernel_linux.*.
  - CVE-2014-2284
* SECURITY UPDATE: denial of service in perl trap handler
  - debian/patches/CVE-2014-2285.patch: handle empty community string in
    perl/TrapReceiver/TrapReceiver.xs.
  - CVE-2014-2285

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
    if (!cache) {
220
220
        DEBUGMSGTL(("agentx/master", "response too late on session %8p\n",
221
221
                    session));
222
 
        return 0;
 
222
        /* response is too late, free the cache */
 
223
        if (magic)
 
224
            netsnmp_free_delegated_cache((netsnmp_delegated_cache*) magic);
 
225
        return 1;
223
226
    }
224
227
    requests = cache->requests;
225
228
 
606
609
    result = snmp_async_send(ax_session, pdu, agentx_got_response, cb_data);
607
610
    if (result == 0) {
608
611
        snmp_free_pdu(pdu);
 
612
        if (cb_data)
 
613
            netsnmp_free_delegated_cache((netsnmp_delegated_cache*) cb_data);
609
614
    }
610
615
 
611
616
    return SNMP_ERR_NOERROR;