mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:22:05 -04:00
1106. [bug] After seeing an out of range TTL, nsupdate would
treat all TTLs as out of range. [RT #2001]
This commit is contained in:
parent
7b5bf4bea4
commit
62c1fe7b45
2 changed files with 7 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1106. [bug] After seeing an out of range TTL, nsupdate would
|
||||
treat all TTLs as out of range. [RT #2001]
|
||||
|
||||
1105. [port] OpenUNIX 8 enable threads by default. [RT #1970]
|
||||
|
||||
1104. [bug] Invalid arguments to the transfer-format option
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsupdate.c,v 1.108 2001/10/15 20:23:47 bwelling Exp $ */
|
||||
/* $Id: nsupdate.c,v 1.109 2001/11/06 17:46:35 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1159,7 +1159,9 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
|
|||
|
||||
if (isdelete)
|
||||
ttl = 0;
|
||||
else if (ttl < 0 || ttl > TTL_MAX || errno == ERANGE) {
|
||||
else if (ttl < 0 || ttl > TTL_MAX ||
|
||||
(ttl == LONG_MAX && errno == ERANGE))
|
||||
{
|
||||
/*
|
||||
* The errno test is needed to catch when strtol()
|
||||
* overflows on a platform where sizeof(int) ==
|
||||
|
|
|
|||
Loading…
Reference in a new issue