Skip to content
GitLab
Menu
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
abaec240
Commit
abaec240
authored
Sep 07, 2000
by
Brian Wellington
Browse files
429. [bug] The space reserved for a TSIG record in a response
was 2 bytes too short, leading to message generation failures.
parent
70d950d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
abaec240
429. [bug] The space reserved for a TSIG record in a response
was 2 bytes too short, leading to message
generation failures.
428. [bug] rbtdb.c:find_closest_nxt() erroneously returned
DNS_R_BADDB for nodes which had neither NXT nor SIG NXT
(e.g. glue). This could cause SERVFAILs when
...
...
lib/dns/message.c
View file @
abaec240
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: message.c,v 1.14
2
2000/0
8/22 01:10:42
bwelling Exp $ */
/* $Id: message.c,v 1.14
3
2000/0
9/07 21:08:51
bwelling Exp $ */
/***
*** Imports
...
...
@@ -587,6 +587,8 @@ spacefortsig(dns_tsigkey_t *key, int otherlen) {
* 2 bytes for the type
* 2 bytes for the class
* 4 bytes for the ttl
* 2 bytes for the rdlength
* n2 bytes for the algorithm name
* 6 bytes for the time signed
* 2 bytes for the fudge
* 2 bytes for the MAC size
...
...
@@ -596,7 +598,7 @@ spacefortsig(dns_tsigkey_t *key, int otherlen) {
* 2 bytes for the other data length
* y bytes for the other data (at most)
* ---------------------------------
*
30
+ n1 + n2 + x + y bytes
*
26
+ n1 + n2 + x + y bytes
*/
dns_name_toregion
(
&
key
->
name
,
&
r1
);
...
...
@@ -608,7 +610,7 @@ spacefortsig(dns_tsigkey_t *key, int otherlen) {
if
(
result
!=
ISC_R_SUCCESS
)
x
=
0
;
}
return
(
2
4
+
r1
.
length
+
r2
.
length
+
x
+
otherlen
);
return
(
2
6
+
r1
.
length
+
r2
.
length
+
x
+
otherlen
);
}
isc_result_t
...
...
Write
Preview
Supports
Markdown
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