473. [bug] nsupdate overran the end of the list of name servers
when no servers could be reached, typically causing
it to print the error message "dns_request_create:
not implemented".
+ 473. [bug] nsupdate overran the end of the list of name servers
+ when no servers could be reached, typically causing
+ it to print the error message "dns_request_create:
+ not implemented".
+
472. [bug] Off-by-one error caused isc_time_add() to sometimes
produce invalid time values.
* SOFTWARE.
*/
-/* $Id: nsupdate.c,v 1.8.2.8 2000/09/18 17:51:38 gson Exp $ */
+/* $Id: nsupdate.c,v 1.8.2.9 2000/09/18 22:29:36 gson Exp $ */
#include <config.h>
addrbuf, isc_result_totext(eresult));
if (userserver != NULL)
fatal("Couldn't talk to specified nameserver.");
- else if (ns_inuse++ >= lwconf->nsnext)
+ else if (++ns_inuse >= lwconf->nsnext)
fatal("Couldn't talk to any default nameserver.");
ddebug("Destroying request [%lx]", request);
dns_request_destroy(&request);