mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 11:52:12 -04:00
[master] fix unchecked result
4295. [bug] An unchecked result in dns_message_pseudosectiontotext() could allow incorrect text formatting of EDNS EXPIRE options. [RT #41437]
This commit is contained in:
parent
b3378292d0
commit
2879ee2c72
2 changed files with 9 additions and 1 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
4295. [bug] An unchecked result in dns_message_pseudosectiontotext()
|
||||
could allow incorrect text formatting of EDNS EXPIRE
|
||||
options. [RT #41437]
|
||||
|
||||
4294. [bug] Fixed a regression in which "rndc stop -p" failed
|
||||
to print the PID. [RT #41513]
|
||||
|
||||
|
|
|
|||
|
|
@ -3388,7 +3388,11 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
|||
snprintf(buf, sizeof(buf), "%u", secs);
|
||||
ADD_STRING(target, buf);
|
||||
ADD_STRING(target, " (");
|
||||
dns_ttl_totext(secs, ISC_TRUE, target);
|
||||
result = dns_ttl_totext(secs,
|
||||
ISC_TRUE,
|
||||
target);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
return (result);
|
||||
ADD_STRING(target, ")\n");
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue