1107. [bug] nsupdate could catch an assertion failure if an
invalid domain name was given as the argument to
the "zone" command.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
||||
1107. [bug] nsupdate could catch an assertion failure if an
|
||||
invalid domain name was given as the argument to
|
||||
the "zone" command.
|
||||
|
||||
1106. [bug] After seeing an out of range TTL, nsupdate would
|
||||
treat all TTLs as out of range. [RT #2001]
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsupdate.c,v 1.110 2001/11/06 19:59:38 gson Exp $ */
|
||||
/* $Id: nsupdate.c,v 1.111 2001/11/06 20:21:42 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -1089,6 +1089,7 @@ evaluate_zone(char *cmdline) {
|
||||
result = dns_name_fromtext(userzone, &b, dns_rootname, ISC_FALSE,
|
||||
NULL);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
userzone = NULL; /* Lest it point to an invalid name */
|
||||
fprintf(stderr, "could not parse zone name\n");
|
||||
return (STATUS_SYNTAX);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user