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
bcdf37e0
Commit
bcdf37e0
authored
Jul 20, 2006
by
Mark Andrews
Browse files
2052. [bug] 'rndc' improve connect failed message to report
the failing address. [RT #15978]
parent
a34d1980
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
bcdf37e0
2052. [bug] 'rndc' improve connect failed message to report
the failing address. [RT #15978]
2051. [port] More strtol() fixes. [RT #16249]
2050. [bug] Parsing of NSAP records was not case insensitive.
...
...
bin/rndc/rndc.c
View file @
bcdf37e0
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.c,v 1.11
1
2006/0
3/09 23:39:00
marka Exp $ */
/* $Id: rndc.c,v 1.11
2
2006/0
7/20 03:41:57
marka Exp $ */
/*! \file */
...
...
@@ -314,6 +314,7 @@ rndc_recvnonce(isc_task_t *task, isc_event_t *event) {
static
void
rndc_connected
(
isc_task_t
*
task
,
isc_event_t
*
event
)
{
char
socktext
[
ISC_SOCKADDR_FORMATSIZE
];
isc_socketevent_t
*
sevent
=
(
isc_socketevent_t
*
)
event
;
isccc_sexpr_t
*
request
=
NULL
;
isccc_sexpr_t
*
data
;
...
...
@@ -327,17 +328,19 @@ rndc_connected(isc_task_t *task, isc_event_t *event) {
connects
--
;
if
(
sevent
->
result
!=
ISC_R_SUCCESS
)
{
isc_sockaddr_format
(
&
serveraddrs
[
currentaddr
],
socktext
,
sizeof
(
socktext
));
if
(
sevent
->
result
!=
ISC_R_CANCELED
&&
currentaddr
<
nserveraddrs
)
++
currentaddr
<
nserveraddrs
)
{
notify
(
"connection failed: %s
"
,
notify
(
"connection failed: %s
: %s"
,
socktext
,
isc_result_totext
(
sevent
->
result
));
isc_socket_detach
(
&
sock
);
isc_event_free
(
&
event
);
rndc_startconnect
(
&
serveraddrs
[
currentaddr
++
],
task
);
rndc_startconnect
(
&
serveraddrs
[
currentaddr
],
task
);
return
;
}
else
fatal
(
"connect failed: %s
"
,
fatal
(
"connect failed: %s
: %s"
,
socktext
,
isc_result_totext
(
sevent
->
result
));
}
...
...
@@ -408,7 +411,7 @@ rndc_start(isc_task_t *task, isc_event_t *event) {
isc_event_free
(
&
event
);
currentaddr
=
0
;
rndc_startconnect
(
&
serveraddrs
[
currentaddr
++
],
task
);
rndc_startconnect
(
&
serveraddrs
[
currentaddr
],
task
);
}
static
void
...
...
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