BIND 8.2.2-P5 ns_config.c patch for "ixfr-base"
Rich Caissie
caissie at process.com
Fri Feb 25 15:45:59 UTC 2000
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);
More information about the bind-workers
mailing list