summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2016-01-04 16:04:51 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2016-01-04 16:04:51 +0000
commitcc7cb0b89326b7c2ecdd4848002d10a4cbed894d (patch)
tree56ed15a36c0240a64792182902f22a697355d1c4
parentec0628c4b2a06e1fc21216091bb040d61a43b271 (diff)
downloaddnsmasq-2.76test3.tar.gz
Fix datatype-sixe botch which broke DNSSEC sig timestamps when far in the future.v2.76test3v2.76test2
-rw-r--r--src/dnssec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dnssec.c b/src/dnssec.c
index 0e5cbe8..5a1190d 100644
--- a/src/dnssec.c
+++ b/src/dnssec.c
@@ -436,7 +436,7 @@ static int count_labels(char *name)
}
/* Implement RFC1982 wrapped compare for 32-bit numbers */
-static int serial_compare_32(unsigned long s1, unsigned long s2)
+static int serial_compare_32(u32 s1, u32 s2)
{
if (s1 == s2)
return SERIAL_EQ;
@@ -503,7 +503,7 @@ int setup_timestamp(void)
}
/* Check whether today/now is between date_start and date_end */
-static int check_date_range(unsigned long date_start, unsigned long date_end)
+static int check_date_range(u32 date_start, u32 date_end)
{
unsigned long curtime = time(0);
@@ -796,11 +796,11 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
char *name, char *keyname, char **wildcard_out, struct blockdata *key, int keylen, int algo_in, int keytag_in)
{
unsigned char *p;
- int rdlen, j, name_labels, sig_expiration, sig_inception;
+ int rdlen, j, name_labels, algo, labels, orig_ttl, key_tag;
struct crec *crecp = NULL;
- int algo, labels, orig_ttl, key_tag;
u16 *rr_desc = rrfilter_desc(type);
-
+ u32 sig_expiration, sig_inception
+;
if (wildcard_out)
*wildcard_out = NULL;