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
d070219e
Commit
d070219e
authored
Apr 30, 1999
by
Michael Graff
Browse files
clean up and start testing rendering
parent
1d7987f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/message.c
View file @
d070219e
...
...
@@ -1136,14 +1136,13 @@ dns_message_rendersection(dns_message_t *msg, dns_section_t sectionid,
next_name
=
ISC_LIST_NEXT
(
name
,
link
);
result
=
dns_name_towire
(
name
,
&
msg
->
cctx
,
&
subbuffer
);
if
(
result
=
=
DNS_R_
NOSPACE
)
{
if
(
result
!
=
DNS_R_
SUCCESS
)
{
subbuffer
.
used
=
used
;
msg
->
counts
[
sectionid
]
+=
total
;
isc_buffer_used
(
&
subbuffer
,
&
r
);
isc_buffer_add
(
msg
->
buffer
,
r
.
length
);
return
(
DNS_R_NOSPACE
);
}
else
if
(
result
!=
DNS_R_SUCCESS
)
return
(
result
);
}
rdataset
=
ISC_LIST_HEAD
(
name
->
list
);
while
(
rdataset
!=
NULL
)
{
...
...
@@ -1158,14 +1157,13 @@ dns_message_rendersection(dns_message_t *msg, dns_section_t sectionid,
* If out of space, record stats on what we rendered
* so far, and return that status.
*/
if
(
result
=
=
DNS_R_
NOSPACE
)
{
if
(
result
!
=
DNS_R_
SUCCESS
)
{
subbuffer
.
used
=
used
;
msg
->
counts
[
sectionid
]
+=
total
;
isc_buffer_used
(
&
subbuffer
,
&
r
);
isc_buffer_add
(
msg
->
buffer
,
r
.
length
);
return
(
DNS_R_NOSPACE
);
}
else
if
(
result
!=
DNS_R_SUCCESS
)
return
(
result
);
}
total
+=
count
;
...
...
@@ -1177,8 +1175,7 @@ dns_message_rendersection(dns_message_t *msg, dns_section_t sectionid,
name
=
next_name
;
}
/* XXX implement */
return
(
ISC_R_NOTIMPLEMENTED
);
return
(
ISC_R_SUCCESS
);
}
dns_result_t
...
...
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