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
271154ea
Commit
271154ea
authored
Dec 15, 1999
by
Mark Andrews
Browse files
dns_message_reply(): copy the question section of notify messages.
parent
0a9fedaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/dns/include/dns/message.h
View file @
271154ea
...
...
@@ -771,11 +771,11 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section);
* Ensures:
*
* The message will have a rendering intent. If 'want_question_section'
* is true, the message opcode is query, and the question
section is
* present and properly formatted, then the question section
will be
* included in the reply. All other sections will be cleared.
The QR
* flag will be set, the RD flag will be preserved, and all other
flags
* will be cleared.
* is true, the message opcode is query
or notify
, and the question
*
section is
present and properly formatted, then the question section
*
will be
included in the reply. All other sections will be cleared.
*
The QR
flag will be set, the RD flag will be preserved, and all other
*
flags
will be cleared.
*
* Returns:
*
...
...
lib/dns/message.c
View file @
271154ea
...
...
@@ -1918,7 +1918,8 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
if
(
!
msg
->
header_ok
)
return
(
DNS_R_FORMERR
);
if
(
msg
->
opcode
!=
dns_opcode_query
)
if
(
msg
->
opcode
!=
dns_opcode_query
&&
msg
->
opcode
!=
dns_opcode_notify
)
want_question_section
=
ISC_FALSE
;
if
(
want_question_section
)
{
if
(
!
msg
->
question_ok
)
...
...
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