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:
Andreas Gustafsson
2001-11-06 20:21:42 +00:00
parent 1a1eba30c3
commit 04f158ce9a
2 changed files with 6 additions and 1 deletions

View File

@@ -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]

View File

@@ -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);
}