Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
81b43827
Commit
81b43827
authored
May 23, 2000
by
Brian Wellington
Browse files
Commented hard to understand behavior in dns_message_signer
parent
00b67c06
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/message.c
View file @
81b43827
...
...
@@ -2321,8 +2321,16 @@ dns_message_checksig(dns_message_t *msg, dns_view_t *view) {
INSIST
(
result
==
ISC_R_SUCCESS
);
dns_rdataset_current
(
msg
->
sig0
,
&
rdata
);
/*
* This can occur when the message is a dynamic update, since
* the rdata length checking is relaxed. This should not
* happen in a well-formed message, since the SIG(0) is only
* looked for in the additional section, and the dynamic update
* meta-records are in the prerequisite and update sections.
*/
if
(
rdata
.
length
==
0
)
return
(
ISC_R_UNEXPECTEDEND
);
result
=
dns_rdata_tostruct
(
&
rdata
,
&
sig
,
msg
->
mctx
);
if
(
result
!=
ISC_R_SUCCESS
)
return
(
result
);
...
...
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