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
Petr Menšík
BIND
Commits
ef6a36d9
Commit
ef6a36d9
authored
Nov 22, 2000
by
Brian Wellington
Browse files
tsig signed queries by the resolver both didn't always work and leaked memory.
parent
83c45e69
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/resolver.c
View file @
ef6a36d9
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: resolver.c,v 1.18
2
2000/11/
15 04:53:06 marka
Exp $ */
/* $Id: resolver.c,v 1.18
3
2000/11/
22 23:16:04 bwelling
Exp $ */
#include <config.h>
#include <config.h>
...
@@ -401,6 +401,9 @@ fctx_cancelquery(resquery_t **queryp, dns_dispatchevent_t **deventp,
...
@@ -401,6 +401,9 @@ fctx_cancelquery(resquery_t **queryp, dns_dispatchevent_t **deventp,
if
(
query
->
tsig
!=
NULL
)
if
(
query
->
tsig
!=
NULL
)
isc_buffer_free
(
&
query
->
tsig
);
isc_buffer_free
(
&
query
->
tsig
);
if
(
query
->
tsigkey
!=
NULL
)
dns_tsigkey_detach
(
&
query
->
tsigkey
);
/*
/*
* Check for any outstanding socket events. If they exist, cancel
* Check for any outstanding socket events. If they exist, cancel
* them and let the event handlers finish the cleanup. The resolver
* them and let the event handlers finish the cleanup. The resolver
...
@@ -3936,6 +3939,12 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
...
@@ -3936,6 +3939,12 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
goto
done
;
goto
done
;
}
}
if
(
query
->
tsigkey
)
{
result
=
dns_message_settsigkey
(
message
,
query
->
tsigkey
);
if
(
result
!=
ISC_R_SUCCESS
)
goto
done
;
}
result
=
dns_message_parse
(
message
,
&
devent
->
buffer
,
0
);
result
=
dns_message_parse
(
message
,
&
devent
->
buffer
,
0
);
if
(
result
!=
ISC_R_SUCCESS
)
{
if
(
result
!=
ISC_R_SUCCESS
)
{
switch
(
result
)
{
switch
(
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