|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/bin/dig/dighost.c.cleanup bind-9.8.0rc1/bin/dig/dighost.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/bin/dig/dighost.c.cleanup 2011-02-21 16:30:33.188433480 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/bin/dig/dighost.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -4300,7 +4300,6 @@ opentmpkey(isc_mem_t *mctx, const char *
|
|
Adam Tkac |
9dbbf5 |
char *tempnamekey = NULL;
|
|
Adam Tkac |
9dbbf5 |
int tempnamelen;
|
|
Adam Tkac |
9dbbf5 |
int tempnamekeylen;
|
|
Adam Tkac |
9dbbf5 |
- char *x;
|
|
Adam Tkac |
9dbbf5 |
char *cp;
|
|
Adam Tkac |
9dbbf5 |
isc_uint32_t which;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
@@ -4323,11 +4322,11 @@ opentmpkey(isc_mem_t *mctx, const char *
|
|
Adam Tkac |
9dbbf5 |
return (ISC_R_FAILURE);
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- x = cp--;
|
|
Adam Tkac |
9dbbf5 |
+ cp--;
|
|
Adam Tkac |
9dbbf5 |
while (cp >= tempname && *cp == 'X') {
|
|
Adam Tkac |
9dbbf5 |
isc_random_get(&which);
|
|
Adam Tkac |
9dbbf5 |
*cp = alphnum[which % (sizeof(alphnum) - 1)];
|
|
Adam Tkac |
9dbbf5 |
- x = cp--;
|
|
Adam Tkac |
9dbbf5 |
+ cp--;
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
tempnamekeylen = tempnamelen+5;
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/bin/dnssec/dnssec-signzone.c.cleanup bind-9.8.0rc1/bin/dnssec/dnssec-signzone.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/bin/dnssec/dnssec-signzone.c.cleanup 2010-06-04 01:51:04.000000000 +0200
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/bin/dnssec/dnssec-signzone.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -1467,7 +1467,6 @@ verifyzone(void) {
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t done = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t first = ISC_TRUE;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t goodksk = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
- isc_boolean_t goodzsk = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
unsigned char revoked_ksk[256];
|
|
Adam Tkac |
9dbbf5 |
unsigned char revoked_zsk[256];
|
|
Adam Tkac |
9dbbf5 |
@@ -1569,7 +1568,6 @@ verifyzone(void) {
|
|
Adam Tkac |
9dbbf5 |
#endif
|
|
Adam Tkac |
9dbbf5 |
if (zsk_algorithms[dnskey.algorithm] != 255)
|
|
Adam Tkac |
9dbbf5 |
zsk_algorithms[dnskey.algorithm]++;
|
|
Adam Tkac |
9dbbf5 |
- goodzsk = ISC_TRUE;
|
|
Adam Tkac |
9dbbf5 |
} else {
|
|
Adam Tkac |
9dbbf5 |
if (standby_zsk[dnskey.algorithm] != 255)
|
|
Adam Tkac |
9dbbf5 |
standby_zsk[dnskey.algorithm]++;
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/bin/named/server.c.cleanup bind-9.8.0rc1/bin/named/server.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/bin/named/server.c.cleanup 2011-02-21 16:30:33.058433757 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/bin/named/server.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -1670,7 +1670,6 @@ configure_view(dns_view_t *view, cfg_par
|
|
Adam Tkac |
9dbbf5 |
isc_uint32_t max_clients_per_query;
|
|
Adam Tkac |
9dbbf5 |
const char *sep = ": view ";
|
|
Adam Tkac |
9dbbf5 |
const char *viewname = view->name;
|
|
Adam Tkac |
9dbbf5 |
- const char *forview = " for view ";
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t rfc1918;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t empty_zones_enable;
|
|
Adam Tkac |
9dbbf5 |
const cfg_obj_t *disablelist = NULL;
|
|
Adam Tkac |
5bc2b4 |
@@ -1718,7 +1717,6 @@ configure_view(dns_view_t *view, cfg_par
|
|
Adam Tkac |
9dbbf5 |
if (!strcmp(viewname, "_default")) {
|
|
Adam Tkac |
9dbbf5 |
sep = "";
|
|
Adam Tkac |
9dbbf5 |
viewname = "";
|
|
Adam Tkac |
9dbbf5 |
- forview = "";
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/contrib/dlz/drivers/dlz_postgres_driver.c.cleanup bind-9.8.0rc1/contrib/dlz/drivers/dlz_postgres_driver.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/contrib/dlz/drivers/dlz_postgres_driver.c.cleanup 2010-12-18 02:56:21.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/contrib/dlz/drivers/dlz_postgres_driver.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -292,8 +292,10 @@ postgres_get_resultset(const char *zone,
|
|
Adam Tkac |
9dbbf5 |
unsigned int i = 0;
|
|
Adam Tkac |
9dbbf5 |
unsigned int j = 0;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
+#if 0
|
|
Adam Tkac |
9dbbf5 |
/* temporarily get a unique thread # */
|
|
Adam Tkac |
9dbbf5 |
unsigned int dlz_thread_num = 1+(int) (1000.0*rand()/(RAND_MAX+1.0));
|
|
Adam Tkac |
9dbbf5 |
+#endif
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
REQUIRE(*rs == NULL);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/bind9/check.c.cleanup bind-9.8.0rc1/lib/bind9/check.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/bind9/check.c.cleanup 2011-01-08 00:47:07.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/bind9/check.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -1997,8 +1997,6 @@ check_trusted_key(const cfg_obj_t *key,
|
|
Adam Tkac |
9dbbf5 |
isc_log_t *logctx)
|
|
Adam Tkac |
9dbbf5 |
{
|
|
Adam Tkac |
9dbbf5 |
const char *keystr, *keynamestr;
|
|
Adam Tkac |
9dbbf5 |
- dns_fixedname_t fkeyname;
|
|
Adam Tkac |
9dbbf5 |
- dns_name_t *keyname;
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_t keydatabuf;
|
|
Adam Tkac |
9dbbf5 |
isc_region_t r;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result = ISC_R_SUCCESS;
|
|
Adam Tkac |
5bc2b4 |
@@ -2009,7 +2007,6 @@ check_trusted_key(const cfg_obj_t *key,
|
|
Adam Tkac |
9dbbf5 |
flags = cfg_obj_asuint32(cfg_tuple_get(key, "flags"));
|
|
Adam Tkac |
9dbbf5 |
proto = cfg_obj_asuint32(cfg_tuple_get(key, "protocol"));
|
|
Adam Tkac |
9dbbf5 |
alg = cfg_obj_asuint32(cfg_tuple_get(key, "algorithm"));
|
|
Adam Tkac |
9dbbf5 |
- keyname = dns_fixedname_name(&fkeyname);
|
|
Adam Tkac |
9dbbf5 |
keynamestr = cfg_obj_asstring(cfg_tuple_get(key, "name"));
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
if (flags > 0xffff) {
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/adb.c.cleanup bind-9.8.0rc1/lib/dns/adb.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/adb.c.cleanup 2010-12-22 00:47:08.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/adb.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -2195,7 +2195,6 @@ check_expire_name(dns_adbname_t **namep,
|
|
Adam Tkac |
9dbbf5 |
static void
|
|
Adam Tkac |
9dbbf5 |
check_stale_name(dns_adb_t *adb, int bucket, isc_stdtime_t now) {
|
|
Adam Tkac |
9dbbf5 |
int victims, max_victims;
|
|
Adam Tkac |
9dbbf5 |
- isc_boolean_t result;
|
|
Adam Tkac |
9dbbf5 |
dns_adbname_t *victim, *next_victim;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t overmem = isc_mem_isovermem(adb->mctx);
|
|
Adam Tkac |
9dbbf5 |
int scans = 0;
|
|
Adam Tkac |
5bc2b4 |
@@ -2217,7 +2216,7 @@ check_stale_name(dns_adb_t *adb, int buc
|
|
Adam Tkac |
9dbbf5 |
INSIST(!NAME_DEAD(victim));
|
|
Adam Tkac |
9dbbf5 |
scans++;
|
|
Adam Tkac |
9dbbf5 |
next_victim = ISC_LIST_PREV(victim, plink);
|
|
Adam Tkac |
9dbbf5 |
- result = check_expire_name(&victim, now);
|
|
Adam Tkac |
9dbbf5 |
+ (void) check_expire_name(&victim, now);
|
|
Adam Tkac |
9dbbf5 |
if (victim == NULL) {
|
|
Adam Tkac |
9dbbf5 |
victims++;
|
|
Adam Tkac |
9dbbf5 |
goto next;
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/diff.c.cleanup bind-9.8.0rc1/lib/dns/diff.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/diff.c.cleanup 2009-12-01 01:47:09.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/diff.c 2011-02-21 16:30:33.198433459 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -264,7 +264,6 @@ diff_apply(dns_diff_t *diff, dns_db_t *d
|
|
Adam Tkac |
9dbbf5 |
dns_rdataset_t rds;
|
|
Adam Tkac |
9dbbf5 |
dns_rdataset_t ardataset;
|
|
Adam Tkac |
9dbbf5 |
dns_rdataset_t *modified = NULL;
|
|
Adam Tkac |
9dbbf5 |
- isc_boolean_t offline;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
op = t->op;
|
|
Adam Tkac |
9dbbf5 |
type = t->rdata.type;
|
|
Adam Tkac |
9dbbf5 |
@@ -301,7 +300,6 @@ diff_apply(dns_diff_t *diff, dns_db_t *d
|
|
Adam Tkac |
9dbbf5 |
CHECK(dns_db_findnsec3node(db, name, ISC_TRUE,
|
|
Adam Tkac |
9dbbf5 |
&node));
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- offline = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
while (t != NULL &&
|
|
Adam Tkac |
9dbbf5 |
dns_name_equal(&t->name, name) &&
|
|
Adam Tkac |
9dbbf5 |
t->op == op &&
|
|
Adam Tkac |
9dbbf5 |
@@ -323,8 +321,6 @@ diff_apply(dns_diff_t *diff, dns_db_t *d
|
|
Adam Tkac |
9dbbf5 |
namebuf, typebuf, classbuf,
|
|
Adam Tkac |
9dbbf5 |
(unsigned long) t->ttl,
|
|
Adam Tkac |
9dbbf5 |
(unsigned long) rdl.ttl);
|
|
Adam Tkac |
9dbbf5 |
- if (t->rdata.flags & DNS_RDATA_OFFLINE)
|
|
Adam Tkac |
9dbbf5 |
- offline = ISC_TRUE;
|
|
Adam Tkac |
9dbbf5 |
ISC_LIST_APPEND(rdl.rdata, &t->rdata, link);
|
|
Adam Tkac |
9dbbf5 |
t = ISC_LIST_NEXT(t, link);
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/dnssec.c.cleanup bind-9.8.0rc1/lib/dns/dnssec.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/dnssec.c.cleanup 2010-01-14 00:48:59.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/dnssec.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -1068,7 +1068,6 @@ isc_result_t
|
|
Adam Tkac |
9dbbf5 |
dns_dnsseckey_create(isc_mem_t *mctx, dst_key_t **dstkey,
|
|
Adam Tkac |
9dbbf5 |
dns_dnsseckey_t **dkp)
|
|
Adam Tkac |
9dbbf5 |
{
|
|
Adam Tkac |
9dbbf5 |
- isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
dns_dnsseckey_t *dk;
|
|
Adam Tkac |
9dbbf5 |
int major, minor;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
@@ -1094,7 +1093,7 @@ dns_dnsseckey_create(isc_mem_t *mctx, ds
|
|
Adam Tkac |
9dbbf5 |
dk->ksk = ISC_TF((dst_key_flags(dk->key) & DNS_KEYFLAG_KSK) != 0);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/* Is this an old-style key? */
|
|
Adam Tkac |
9dbbf5 |
- result = dst_key_getprivateformat(dk->key, &major, &minor);
|
|
Adam Tkac |
9dbbf5 |
+ (void) dst_key_getprivateformat(dk->key, &major, &minor);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/* Smart signing started with key format 1.3 */
|
|
Adam Tkac |
9dbbf5 |
dk->legacy = ISC_TF(major == 1 && minor <= 2);
|
|
Adam Tkac |
9dbbf5 |
@@ -1673,9 +1672,6 @@ dns_dnssec_updatekeys(dns_dnsseckeylist_
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/* No match found in keys; add the new key. */
|
|
Adam Tkac |
9dbbf5 |
if (key2 == NULL) {
|
|
Adam Tkac |
9dbbf5 |
- dns_dnsseckey_t *next;
|
|
Adam Tkac |
9dbbf5 |
-
|
|
Adam Tkac |
9dbbf5 |
- next = ISC_LIST_NEXT(key1, link);
|
|
Adam Tkac |
9dbbf5 |
ISC_LIST_UNLINK(*newkeys, key1, link);
|
|
Adam Tkac |
9dbbf5 |
ISC_LIST_APPEND(*keys, key1, link);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/gssapictx.c.cleanup bind-9.8.0rc1/lib/dns/gssapictx.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/gssapictx.c.cleanup 2011-01-10 04:49:49.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/gssapictx.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -121,7 +121,6 @@ name_to_gbuffer(dns_name_t *name, isc_bu
|
|
Adam Tkac |
9dbbf5 |
{
|
|
Adam Tkac |
9dbbf5 |
dns_name_t tname, *namep;
|
|
Adam Tkac |
9dbbf5 |
isc_region_t r;
|
|
Adam Tkac |
9dbbf5 |
- isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
if (!dns_name_isabsolute(name))
|
|
Adam Tkac |
9dbbf5 |
namep = name;
|
|
Adam Tkac |
5bc2b4 |
@@ -134,7 +133,7 @@ name_to_gbuffer(dns_name_t *name, isc_bu
|
|
Adam Tkac |
9dbbf5 |
namep = &tname;
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- result = dns_name_toprincipal(namep, buffer);
|
|
Adam Tkac |
9dbbf5 |
+ (void) dns_name_toprincipal(namep, buffer);
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_putuint8(buffer, 0);
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_usedregion(buffer, &r);
|
|
Adam Tkac |
9dbbf5 |
REGION_TO_GBUFFER(r, *gbuffer);
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/rdata/generic/dlv_32769.c.cleanup bind-9.8.0rc1/lib/dns/rdata/generic/dlv_32769.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/rdata/generic/dlv_32769.c.cleanup 2010-12-24 00:47:08.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/rdata/generic/dlv_32769.c 2011-02-21 16:32:03.818238782 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -33,7 +33,6 @@ static inline isc_result_t
|
|
Adam Tkac |
9dbbf5 |
fromtext_dlv(ARGS_FROMTEXT) {
|
|
Adam Tkac |
9dbbf5 |
isc_token_t token;
|
|
Adam Tkac |
9dbbf5 |
unsigned char c;
|
|
Adam Tkac |
9dbbf5 |
- int length;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
REQUIRE(type == 32769);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
@@ -71,23 +70,6 @@ fromtext_dlv(ARGS_FROMTEXT) {
|
|
Adam Tkac |
9dbbf5 |
RETERR(uint8_tobuffer(token.value.as_ulong, target));
|
|
Adam Tkac |
9dbbf5 |
c = (unsigned char) token.value.as_ulong;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- /*
|
|
Adam Tkac |
9dbbf5 |
- * Digest.
|
|
Adam Tkac |
9dbbf5 |
- */
|
|
Adam Tkac |
5bc2b4 |
- switch (c) {
|
|
Adam Tkac |
5bc2b4 |
- case DNS_DSDIGEST_SHA1:
|
|
Adam Tkac |
9dbbf5 |
- length = ISC_SHA1_DIGESTLENGTH;
|
|
Adam Tkac |
5bc2b4 |
- break;
|
|
Adam Tkac |
5bc2b4 |
- case DNS_DSDIGEST_SHA256:
|
|
Adam Tkac |
9dbbf5 |
- length = ISC_SHA256_DIGESTLENGTH;
|
|
Adam Tkac |
5bc2b4 |
- break;
|
|
Adam Tkac |
5bc2b4 |
- case DNS_DSDIGEST_GOST:
|
|
Adam Tkac |
5bc2b4 |
- length = ISC_GOST_DIGESTLENGTH;
|
|
Adam Tkac |
5bc2b4 |
- break;
|
|
Adam Tkac |
5bc2b4 |
- default:
|
|
Adam Tkac |
9dbbf5 |
- length = -1;
|
|
Adam Tkac |
5bc2b4 |
- break;
|
|
Adam Tkac |
5bc2b4 |
- }
|
|
Adam Tkac |
9dbbf5 |
return (isc_hex_tobuffer(lexer, target, -1));
|
|
Adam Tkac |
9dbbf5 |
}
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/request.c.cleanup bind-9.8.0rc1/lib/dns/request.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/request.c.cleanup 2010-03-05 00:50:34.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/request.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -428,12 +428,10 @@ req_send(dns_request_t *request, isc_tas
|
|
Adam Tkac |
9dbbf5 |
isc_region_t r;
|
|
Adam Tkac |
9dbbf5 |
isc_socket_t *socket;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
- unsigned int dispattr;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
req_log(ISC_LOG_DEBUG(3), "req_send: request %p", request);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
REQUIRE(VALID_REQUEST(request));
|
|
Adam Tkac |
9dbbf5 |
- dispattr = dns_dispatch_getattributes(request->dispatch);
|
|
Adam Tkac |
9dbbf5 |
socket = req_getsocket(request);
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_usedregion(request->query, &r);
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/tkey.c.cleanup bind-9.8.0rc1/lib/dns/tkey.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/tkey.c.cleanup 2011-01-09 00:47:01.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/tkey.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -70,10 +70,9 @@ static void
|
|
Adam Tkac |
9dbbf5 |
_dns_tkey_dumpmessage(dns_message_t *msg) {
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_t outbuf;
|
|
Adam Tkac |
9dbbf5 |
unsigned char output[4096];
|
|
Adam Tkac |
9dbbf5 |
- isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
isc_buffer_init(&outbuf, output, sizeof(output));
|
|
Adam Tkac |
9dbbf5 |
- result = dns_message_totext(msg, &dns_master_style_debug, 0,
|
|
Adam Tkac |
9dbbf5 |
+ (void) dns_message_totext(msg, &dns_master_style_debug, 0,
|
|
Adam Tkac |
9dbbf5 |
&outbuf);
|
|
Adam Tkac |
9dbbf5 |
/* XXXMLG ignore result */
|
|
Adam Tkac |
9dbbf5 |
fprintf(stderr, "%.*s\n", (int)isc_buffer_usedlength(&outbuf),
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/validator.c.cleanup bind-9.8.0rc1/lib/dns/validator.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/validator.c.cleanup 2010-12-23 05:07:58.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/validator.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -1231,7 +1231,6 @@ authvalidated(isc_task_t *task, isc_even
|
|
Adam Tkac |
9dbbf5 |
dns_validatorevent_t *devent;
|
|
Adam Tkac |
9dbbf5 |
dns_validator_t *val;
|
|
Adam Tkac |
9dbbf5 |
dns_rdataset_t *rdataset;
|
|
Adam Tkac |
9dbbf5 |
- dns_rdataset_t *sigrdataset;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t want_destroy;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t exists, data;
|
|
Adam Tkac |
5bc2b4 |
@@ -1241,7 +1240,6 @@ authvalidated(isc_task_t *task, isc_even
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
devent = (dns_validatorevent_t *)event;
|
|
Adam Tkac |
9dbbf5 |
rdataset = devent->rdataset;
|
|
Adam Tkac |
9dbbf5 |
- sigrdataset = devent->sigrdataset;
|
|
Adam Tkac |
9dbbf5 |
val = devent->ev_arg;
|
|
Adam Tkac |
9dbbf5 |
result = devent->result;
|
|
Adam Tkac |
9dbbf5 |
dns_validator_destroy(&val->subvalidator);
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/dns/zone.c.cleanup bind-9.8.0rc1/lib/dns/zone.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/dns/zone.c.cleanup 2011-02-07 01:14:30.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/dns/zone.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -5668,11 +5668,11 @@ zone_nsec3chain(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
dns_nsec3chainlist_t cleanup;
|
|
Adam Tkac |
9dbbf5 |
dst_key_t *zone_keys[MAXZONEKEYS];
|
|
Adam Tkac |
9dbbf5 |
isc_int32_t signatures;
|
|
Adam Tkac |
9dbbf5 |
- isc_boolean_t check_ksk, keyset_kskonly, is_ksk;
|
|
Adam Tkac |
9dbbf5 |
+ isc_boolean_t check_ksk, keyset_kskonly;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t delegation;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t first;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
- isc_stdtime_t now, inception, soaexpire, expire, stop;
|
|
Adam Tkac |
9dbbf5 |
+ isc_stdtime_t now, inception, soaexpire, expire;
|
|
Adam Tkac |
9dbbf5 |
isc_uint32_t jitter;
|
|
Adam Tkac |
9dbbf5 |
unsigned int i;
|
|
Adam Tkac |
9dbbf5 |
unsigned int nkeys = 0;
|
|
Adam Tkac |
5bc2b4 |
@@ -5737,7 +5737,6 @@ zone_nsec3chain(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
*/
|
|
Adam Tkac |
9dbbf5 |
isc_random_get(&jitter);
|
|
Adam Tkac |
9dbbf5 |
expire = soaexpire - jitter % 3600;
|
|
Adam Tkac |
9dbbf5 |
- stop = now + 5;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
check_ksk = DNS_ZONE_OPTION(zone, DNS_ZONEOPT_UPDATECHECKKSK);
|
|
Adam Tkac |
9dbbf5 |
keyset_kskonly = DNS_ZONE_OPTION(zone, DNS_ZONEOPT_DNSKEYKSKONLY);
|
|
Adam Tkac |
5bc2b4 |
@@ -5783,7 +5782,6 @@ zone_nsec3chain(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
if (NSEC3REMOVE(nsec3chain->nsec3param.flags))
|
|
Adam Tkac |
9dbbf5 |
goto next_addchain;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- is_ksk = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
delegation = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
dns_dbiterator_current(nsec3chain->dbiterator, &node, name);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
@@ -6502,12 +6500,11 @@ zone_sign(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t build_nsec3 = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t first;
|
|
Adam Tkac |
9dbbf5 |
isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
- isc_stdtime_t now, inception, soaexpire, expire, stop;
|
|
Adam Tkac |
9dbbf5 |
+ isc_stdtime_t now, inception, soaexpire, expire;
|
|
Adam Tkac |
9dbbf5 |
isc_uint32_t jitter;
|
|
Adam Tkac |
9dbbf5 |
unsigned int i, j;
|
|
Adam Tkac |
9dbbf5 |
unsigned int nkeys = 0;
|
|
Adam Tkac |
9dbbf5 |
isc_uint32_t nodes;
|
|
Adam Tkac |
9dbbf5 |
- isc_boolean_t was_ksk;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
dns_rdataset_init(&rdataset);
|
|
Adam Tkac |
9dbbf5 |
dns_fixedname_init(&fixed);
|
|
Adam Tkac |
5bc2b4 |
@@ -6559,7 +6556,6 @@ zone_sign(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
*/
|
|
Adam Tkac |
9dbbf5 |
isc_random_get(&jitter);
|
|
Adam Tkac |
9dbbf5 |
expire = soaexpire - jitter % 3600;
|
|
Adam Tkac |
9dbbf5 |
- stop = now + 5;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
9dbbf5 |
* We keep pulling nodes off each iterator in turn until
|
|
Adam Tkac |
5bc2b4 |
@@ -6604,8 +6600,6 @@ zone_sign(dns_zone_t *zone) {
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
delegation = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
- was_ksk = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
-
|
|
Adam Tkac |
9dbbf5 |
if (first && signing->delete) {
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
9dbbf5 |
* Remove the key we are deleting from consideration.
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/isc/httpd.c.cleanup bind-9.8.0rc1/lib/isc/httpd.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/isc/httpd.c.cleanup 2010-11-16 06:38:31.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/isc/httpd.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -912,7 +912,6 @@ isc_httpd_senddone(isc_task_t *task, isc
|
|
Adam Tkac |
9dbbf5 |
{
|
|
Adam Tkac |
9dbbf5 |
isc_httpd_t *httpd = ev->ev_arg;
|
|
Adam Tkac |
9dbbf5 |
isc_region_t r;
|
|
Adam Tkac |
9dbbf5 |
- isc_result_t result;
|
|
Adam Tkac |
9dbbf5 |
isc_socketevent_t *sev = (isc_socketevent_t *)ev;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
ENTER("senddone");
|
|
Adam Tkac |
9dbbf5 |
@@ -963,8 +962,8 @@ isc_httpd_senddone(isc_task_t *task, isc
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
r.base = (unsigned char *)httpd->recvbuf;
|
|
Adam Tkac |
9dbbf5 |
r.length = HTTP_RECVLEN - 1;
|
|
Adam Tkac |
9dbbf5 |
- result = isc_socket_recv(httpd->sock, &r, 1, task, isc_httpd_recvdone,
|
|
Adam Tkac |
9dbbf5 |
- httpd);
|
|
Adam Tkac |
9dbbf5 |
+ (void) isc_socket_recv(httpd->sock, &r, 1, task, isc_httpd_recvdone,
|
|
Adam Tkac |
9dbbf5 |
+ httpd);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
out:
|
|
Adam Tkac |
9dbbf5 |
isc_event_free(&ev;;
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/isc/string.c.cleanup bind-9.8.0rc1/lib/isc/string.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/isc/string.c.cleanup 2007-06-20 01:47:17.000000000 +0200
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/isc/string.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -167,12 +167,11 @@ isc_string_printf(char *target, size_t s
|
|
Adam Tkac |
9dbbf5 |
void
|
|
Adam Tkac |
9dbbf5 |
isc_string_printf_truncate(char *target, size_t size, const char *format, ...) {
|
|
Adam Tkac |
9dbbf5 |
va_list args;
|
|
Adam Tkac |
9dbbf5 |
- size_t n;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
REQUIRE(size > 0U);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
va_start(args, format);
|
|
Adam Tkac |
9dbbf5 |
- n = vsnprintf(target, size, format, args);
|
|
Adam Tkac |
9dbbf5 |
+ (void) vsnprintf(target, size, format, args);
|
|
Adam Tkac |
9dbbf5 |
va_end(args);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
ENSURE(strlen(target) < size);
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/isc/timer.c.cleanup bind-9.8.0rc1/lib/isc/timer.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/isc/timer.c.cleanup 2011-02-03 06:50:07.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/isc/timer.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
9dbbf5 |
@@ -333,7 +333,9 @@ schedule(isc__timer_t *timer, isc_time_t
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
static inline void
|
|
Adam Tkac |
9dbbf5 |
deschedule(isc__timer_t *timer) {
|
|
Adam Tkac |
9dbbf5 |
+#ifdef USE_TIMER_THREAD
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t need_wakeup = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
+#endif /* USE_TIMER_THREAD */
|
|
Adam Tkac |
9dbbf5 |
isc__timermgr_t *manager;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
9dbbf5 |
@@ -342,8 +344,10 @@ deschedule(isc__timer_t *timer) {
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
manager = timer->manager;
|
|
Adam Tkac |
9dbbf5 |
if (timer->index > 0) {
|
|
Adam Tkac |
9dbbf5 |
+#ifdef USE_TIMER_THREAD
|
|
Adam Tkac |
9dbbf5 |
if (timer->index == 1)
|
|
Adam Tkac |
9dbbf5 |
need_wakeup = ISC_TRUE;
|
|
Adam Tkac |
9dbbf5 |
+#endif /* USE_TIMER_THREAD */
|
|
Adam Tkac |
9dbbf5 |
isc_heap_delete(manager->heap, timer->index);
|
|
Adam Tkac |
9dbbf5 |
timer->index = 0;
|
|
Adam Tkac |
9dbbf5 |
INSIST(manager->nscheduled > 0);
|
|
Adam Tkac |
5bc2b4 |
diff -up bind-9.8.0rc1/lib/isc/unix/socket.c.cleanup bind-9.8.0rc1/lib/isc/unix/socket.c
|
|
Adam Tkac |
5bc2b4 |
--- bind-9.8.0rc1/lib/isc/unix/socket.c.cleanup 2011-02-03 06:50:07.000000000 +0100
|
|
Adam Tkac |
5bc2b4 |
+++ bind-9.8.0rc1/lib/isc/unix/socket.c 2011-02-21 16:30:33.208433438 +0100
|
|
Adam Tkac |
5bc2b4 |
@@ -2752,7 +2752,6 @@ isc__socket_close(isc_socket_t *sock0) {
|
|
Adam Tkac |
9dbbf5 |
isc__socket_t *sock = (isc__socket_t *)sock0;
|
|
Adam Tkac |
9dbbf5 |
int fd;
|
|
Adam Tkac |
9dbbf5 |
isc__socketmgr_t *manager;
|
|
Adam Tkac |
9dbbf5 |
- isc_sockettype_t type;
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
REQUIRE(VALID_SOCKET(sock));
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
5bc2b4 |
@@ -2772,7 +2771,6 @@ isc__socket_close(isc_socket_t *sock0) {
|
|
Adam Tkac |
9dbbf5 |
INSIST(sock->connect_ev == NULL);
|
|
Adam Tkac |
9dbbf5 |
|
|
Adam Tkac |
9dbbf5 |
manager = sock->manager;
|
|
Adam Tkac |
9dbbf5 |
- type = sock->type;
|
|
Adam Tkac |
9dbbf5 |
fd = sock->fd;
|
|
Adam Tkac |
9dbbf5 |
sock->fd = -1;
|
|
Adam Tkac |
9dbbf5 |
memset(sock->name, 0, sizeof(sock->name));
|
|
Adam Tkac |
5bc2b4 |
@@ -3690,7 +3688,6 @@ static isc_threadresult_t
|
|
Adam Tkac |
9dbbf5 |
watcher(void *uap) {
|
|
Adam Tkac |
9dbbf5 |
isc__socketmgr_t *manager = uap;
|
|
Adam Tkac |
9dbbf5 |
isc_boolean_t done;
|
|
Adam Tkac |
9dbbf5 |
- int ctlfd;
|
|
Adam Tkac |
9dbbf5 |
int cc;
|
|
Adam Tkac |
9dbbf5 |
#ifdef USE_KQUEUE
|
|
Adam Tkac |
9dbbf5 |
const char *fnname = "kevent()";
|
|
Adam Tkac |
5bc2b4 |
@@ -3702,6 +3699,7 @@ watcher(void *uap) {
|
|
Adam Tkac |
9dbbf5 |
#elif defined (USE_SELECT)
|
|
Adam Tkac |
9dbbf5 |
const char *fnname = "select()";
|
|
Adam Tkac |
9dbbf5 |
int maxfd;
|
|
Adam Tkac |
9dbbf5 |
+ int ctlfd;
|
|
Adam Tkac |
9dbbf5 |
#endif
|
|
Adam Tkac |
9dbbf5 |
char strbuf[ISC_STRERRORSIZE];
|
|
Adam Tkac |
9dbbf5 |
#ifdef ISC_SOCKET_USE_POLLWATCH
|
|
Adam Tkac |
5bc2b4 |
@@ -3711,7 +3709,9 @@ watcher(void *uap) {
|
|
Adam Tkac |
9dbbf5 |
/*
|
|
Adam Tkac |
9dbbf5 |
* Get the control fd here. This will never change.
|
|
Adam Tkac |
9dbbf5 |
*/
|
|
Adam Tkac |
9dbbf5 |
+#ifdef USE_SELECT
|
|
Adam Tkac |
9dbbf5 |
ctlfd = manager->pipe_fds[0];
|
|
Adam Tkac |
9dbbf5 |
+#endif
|
|
Adam Tkac |
9dbbf5 |
done = ISC_FALSE;
|
|
Adam Tkac |
9dbbf5 |
while (!done) {
|
|
Adam Tkac |
9dbbf5 |
do {
|