BIND 8.2.2-P5 ns_config.c patch for "ixfr-base"
Mark.Andrews at nominum.com
Mark.Andrews at nominum.com
Fri Feb 25 22:44:22 UTC 2000
Thanks.
> Hi folks,
>
> When specifying zone/ixfr-base, BIND underallocates memory by 1 byte.
> We tripped over this one on NT and isolated the problem using the memcluster
> debugging.
>
> regards,
> Rich Caissie
> Software Engineer
> Process Software Corporation
>
> *** ns_config.c_orig Fri Feb 25 10:06:11 2000
> --- ns_config.c Fri Feb 25 10:32:09 2000
> ***************
> *** 833,839 ****
> return (0);
> zp->z_ixfr_base = filename;
> if (zp->z_ixfr_tmp == NULL) {
> ! int len = strlen(zp->z_ixfr_base) + (sizeof ".tmp" - 1);
> char *str = (char *) memget(len);
>
> sprintf(str, "%s.tmp", zp->z_ixfr_base);
> --- 833,839 ----
> return (0);
> zp->z_ixfr_base = filename;
> if (zp->z_ixfr_tmp == NULL) {
> ! int len = strlen(zp->z_ixfr_base) + (sizeof ".tmp");
> char *str = (char *) memget(len);
>
> sprintf(str, "%s.tmp", zp->z_ixfr_base);
>
>
--
Mark Andrews, Nominum Inc. / Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at nominum.com
More information about the bind-workers
mailing list