Commit cc7cb0b8 authored by Simon Kelley's avatar Simon Kelley

Fix datatype-sixe botch which broke DNSSEC sig timestamps when far in the future.

parent ec0628c4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment