~ubuntu-branches/ubuntu/lucid/bind9/lucid-updates

« back to all changes in this revision

Viewing changes to lib/dns/view.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Internet Software Consortium, Inc
  • Date: 2010-03-17 08:06:42 UTC
  • mfrom: (1.6.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100317080642-k7us37vn1mpgagmv
Tags: 1:9.7.0.dfsg.P1-1
[Internet Software Consortium, Inc]

* 9.7.0-P1
  - 2852. [bug] Handle broken DNSSEC trust chains better. [RT #15619]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2010  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2003  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: view.c,v 1.159 2009/11/28 15:57:37 vjs Exp $ */
 
18
/* $Id: view.c,v 1.159.66.2 2010/02/25 05:26:27 tbox Exp $ */
19
19
 
20
20
/*! \file */
21
21
 
1325
1325
 
1326
1326
        (void)fprintf(fp, ";\n; Cache dump of view '%s'\n;\n", view->name);
1327
1327
        result = dns_master_dumptostream(view->mctx, view->cachedb, NULL,
1328
 
                                          &dns_master_style_cache, fp);
 
1328
                                         &dns_master_style_cache, fp);
1329
1329
        if (result != ISC_R_SUCCESS)
1330
1330
                return (result);
1331
1331
        dns_adb_dump(view->adb, fp);
 
1332
        dns_resolver_printbadcache(view->resolver, fp);
1332
1333
        return (ISC_R_SUCCESS);
1333
1334
}
1334
1335
#endif
1360
1361
#ifdef BIND9
1361
1362
        if (view->acache != NULL)
1362
1363
                dns_acache_setdb(view->acache, view->cachedb);
 
1364
        if (view->resolver != NULL)
 
1365
                dns_resolver_flushbadcache(view->resolver, NULL);
1363
1366
#endif
1364
1367
 
1365
1368
        dns_adb_flush(view->adb);
1375
1378
                dns_adb_flushname(view->adb, name);
1376
1379
        if (view->cache == NULL)
1377
1380
                return (ISC_R_SUCCESS);
 
1381
        if (view->resolver != NULL)
 
1382
                dns_resolver_flushbadcache(view->resolver, name);
1378
1383
        return (dns_cache_flushname(view->cache, name));
1379
1384
}
1380
1385