~yolanda.robla/ubuntu/saucy/bind9/server_banner

« back to all changes in this revision

Viewing changes to bin/named/query.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-12-05 15:42:08 UTC
  • Revision ID: package-import@ubuntu.com-20121205154208-469t1abxl7m25n5s
Tags: 1:9.8.4.dfsg-1ubuntu2
* SECURITY UPDATE: denial of service via DNS64 and crafted query
  - bin/named/query.c: init rdataset before cleanup.
  - Patch backported from 9.8.4-P1
  - CVE-2012-5688

Show diffs side-by-side

added added

removed removed

Lines of Context:
5183
5183
        isc_result_t result;
5184
5184
        isc_uint32_t ttl = ISC_UINT32_MAX;
5185
5185
 
5186
 
        result = dns_db_getoriginnode(db, &node);
5187
 
        if (result != ISC_R_SUCCESS)
5188
 
                goto cleanup;
5189
5186
        dns_rdataset_init(&rdataset);
 
5187
 
 
5188
        result = dns_db_getoriginnode(db, &node);
 
5189
        if (result != ISC_R_SUCCESS)
 
5190
                goto cleanup;
 
5191
 
5190
5192
        result = dns_db_findrdataset(db, node, version, dns_rdatatype_soa,
5191
5193
                                     0, 0, &rdataset, NULL);
5192
5194
        if (result != ISC_R_SUCCESS)