Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
cc7cb0b8
Commit
cc7cb0b8
authored
Jan 04, 2016
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix datatype-sixe botch which broke DNSSEC sig timestamps when far in the future.
parent
ec0628c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/dnssec.c
src/dnssec.c
+5
-5
No files found.
src/dnssec.c
View file @
cc7cb0b8
...
...
@@ -436,7 +436,7 @@ static int count_labels(char *name)
}
/* Implement RFC1982 wrapped compare for 32-bit numbers */
static
int
serial_compare_32
(
u
nsigned
long
s1
,
unsigned
long
s2
)
static
int
serial_compare_32
(
u
32
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
(
u
nsigned
long
date_start
,
unsigned
long
date_end
)
static
int
check_date_range
(
u
32
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment