mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
#1864 had a size(foo) instead of sizeof(*foo) which broke on 64 bit machines.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.438 2005/06/07 01:21:32 marka Exp $ */
|
/* $Id: zone.c,v 1.439 2005/06/10 07:51:54 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -2563,7 +2563,7 @@ dns_zone_setmasterswithkeys(dns_zone_t *zone, isc_sockaddr_t *masters,
|
|||||||
/*
|
/*
|
||||||
* Similarly for mastersok.
|
* Similarly for mastersok.
|
||||||
*/
|
*/
|
||||||
newok = isc_mem_get(zone->mctx, count * sizeof(newok));
|
newok = isc_mem_get(zone->mctx, count * sizeof(*newok));
|
||||||
if (newok == NULL) {
|
if (newok == NULL) {
|
||||||
result = ISC_R_NOMEMORY;
|
result = ISC_R_NOMEMORY;
|
||||||
isc_mem_put(zone->mctx, new, count * sizeof(*new));
|
isc_mem_put(zone->mctx, new, count * sizeof(*new));
|
||||||
|
Reference in New Issue
Block a user