Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
0c70ab30
Commit
0c70ab30
authored
Jan 09, 2001
by
Mark Andrews
Browse files
672. [bug] The wrong time was in the "time signed" field when
replying with BADTIME error.
parent
ad26c868
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
0c70ab30
672. [bug] The wrong time was in the "time signed" field when
replying with BADTIME error.
671. [bug] The message code was failing to parse a message with
no question section and a TSIG record. [RT #628]
...
...
lib/dns/tsig.c
View file @
0c70ab30
...
...
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.9
8
200
0/12/08 03:10:32 bwelling
Exp $
* $Id: tsig.c,v 1.9
9
200
1/01/09 14:32:44 marka
Exp $
* Principal Author: Brian Wellington
*/
...
...
@@ -504,10 +504,9 @@ dns_tsig_sign(dns_message_t *msg) {
}
/* Digest the timesigned and fudge */
isc_buffer_clear
(
&
databuf
);
if
(
tsig
.
error
!=
dns_tsigerror_badtime
)
buffer_putuint48
(
&
databuf
,
tsig
.
timesigned
);
else
buffer_putuint48
(
&
databuf
,
querytsig
.
timesigned
);
if
(
tsig
.
error
==
dns_tsigerror_badtime
)
tsig
.
timesigned
=
querytsig
.
timesigned
;
buffer_putuint48
(
&
databuf
,
tsig
.
timesigned
);
isc_buffer_putuint16
(
&
databuf
,
tsig
.
fudge
);
isc_buffer_usedregion
(
&
databuf
,
&
r
);
ret
=
dst_context_adddata
(
ctx
,
&
r
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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