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
0dc4e6a6
Commit
0dc4e6a6
authored
Oct 28, 1999
by
Brian Wellington
Browse files
a few error cases were handled wrong
parent
1f90c108
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/tsig.c
View file @
0dc4e6a6
...
...
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.2
4
1999/10/2
7 19:59:34
bwelling Exp $
* $Id: tsig.c,v 1.2
5
1999/10/2
8 22:05:23
bwelling Exp $
* Principal Author: Brian Wellington
*/
...
...
@@ -435,16 +435,12 @@ dns_tsig_sign(dns_message_t *msg) {
goto
cleanup_signature
;
ret
=
isc_buffer_allocate
(
msg
->
mctx
,
&
dynbuf
,
512
,
ISC_BUFFERTYPE_BINARY
);
if
(
ret
!=
ISC_R_SUCCESS
)
{
isc_buffer_free
(
&
dynbuf
);
if
(
ret
!=
ISC_R_SUCCESS
)
goto
cleanup_signature
;
}
ret
=
dns_rdata_fromstruct
(
rdata
,
dns_rdataclass_any
,
dns_rdatatype_tsig
,
tsig
,
dynbuf
);
if
(
ret
!=
ISC_R_SUCCESS
)
{
isc_buffer_free
(
&
dynbuf
);
if
(
ret
!=
ISC_R_SUCCESS
)
goto
cleanup_dynbuf
;
}
dns_message_takebuffer
(
msg
,
&
dynbuf
);
msg
->
tsig
=
tsig
;
...
...
@@ -471,6 +467,7 @@ dns_tsig_sign(dns_message_t *msg) {
goto
cleanup_dynbuf
;
datalist
->
rdclass
=
dns_rdataclass_any
;
datalist
->
type
=
dns_rdatatype_tsig
;
datalist
->
covers
=
0
;
datalist
->
ttl
=
0
;
ISC_LIST_INIT
(
datalist
->
rdata
);
ISC_LIST_APPEND
(
datalist
->
rdata
,
rdata
,
link
);
...
...
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