Skip to content
GitLab
Menu
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
0f0162e6
Commit
0f0162e6
authored
Nov 03, 1999
by
Brian Wellington
Browse files
cleanup of a reference leak
parent
55254a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/tsig.c
View file @
0f0162e6
...
...
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.3
0
1999/11/0
2 23:40:05
bwelling Exp $
* $Id: tsig.c,v 1.3
1
1999/11/0
3 16:52:28
bwelling Exp $
* Principal Author: Brian Wellington
*/
...
...
@@ -588,22 +588,23 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg) {
}
/* Find dns_tsigkey_t based on keyname */
ret
=
dns_tsigkey_find
(
&
tsigkey
,
keyname
,
&
tsig
->
algorithm
);
if
(
ret
!
=
ISC_R_SUCCESS
)
{
msg
->
tsigstatus
=
dns_tsigerror_badkey
;
msg
->
tsig
key
=
NULL
;
/*
* this key must be deleted later - an empty key can be found
* by calling dns_tsigkey_empty()
*/
ret
=
dns_tsigkey_create
(
keyname
,
&
tsig
->
algorithm
,
NULL
,
0
,
ISC_FALSE
,
NULL
,
mctx
,
&
msg
->
tsigkey
)
;
if
(
ret
!=
ISC_R_SUCCESS
)
goto
cleanup_struct
;
return
(
DNS_R_TSIGVERIFYFAILURE
)
;
if
(
msg
->
tsigkey
==
NULL
)
{
ret
=
dns_tsigkey_find
(
&
tsigkey
,
keyname
,
&
tsig
->
algorithm
);
if
(
ret
!=
ISC_R_SUCCESS
)
{
msg
->
tsig
status
=
dns_tsigerror_badkey
;
msg
->
tsigkey
=
NULL
;
ret
=
dns_tsigkey_create
(
keyname
,
&
tsig
->
algorithm
,
NULL
,
0
,
ISC_FALSE
,
NULL
,
mctx
,
&
msg
->
tsigkey
);
if
(
ret
!
=
ISC_R_SUCCESS
)
goto
cleanup_struct
;
return
(
DNS_R_TSIGVERIFYFAILURE
);
}
msg
->
tsigkey
=
tsigkey
;
}
else
tsigkey
=
msg
->
tsigkey
;
msg
->
tsigkey
=
tsigkey
;
key
=
tsigkey
->
key
;
/* Is the time ok? */
...
...
Write
Preview
Supports
Markdown
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