Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sergei Trofimovich
BIND
Commits
6d50f7d9
Commit
6d50f7d9
authored
Jul 29, 2019
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always check 'printcmd' before printing cmdline message
parent
451113b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bin/dig/dig.c
bin/dig/dig.c
+3
-2
No files found.
bin/dig/dig.c
View file @
6d50f7d9
...
...
@@ -505,8 +505,9 @@ printmessage(dig_query_t *query, dns_message_t *msg, bool headers) {
check_result
(
result
,
"dns_master_stylecreate"
);
if
(
query
->
lookup
->
cmdline
[
0
]
!=
0
)
{
if
(
!
short_form
)
if
(
!
short_form
&&
printcmd
)
{
fputs
(
query
->
lookup
->
cmdline
,
stdout
);
}
query
->
lookup
->
cmdline
[
0
]
=
0
;
}
debug
(
"printmessage(%s %s %s)"
,
headers
?
"headers"
:
"noheaders"
,
...
...
@@ -529,7 +530,7 @@ printmessage(dig_query_t *query, dns_message_t *msg, bool headers) {
check_result
(
result
,
"isc_buffer_allocate"
);
if
(
query
->
lookup
->
comments
&&
!
short_form
)
{
if
(
query
->
lookup
->
cmdline
[
0
]
!=
0
)
if
(
query
->
lookup
->
cmdline
[
0
]
!=
0
&&
printcmd
)
printf
(
"; %s
\n
"
,
query
->
lookup
->
cmdline
);
if
(
msg
==
query
->
lookup
->
sendmsg
)
printf
(
";; Sending:
\n
"
);
...
...
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