diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 3b2ad41cf0..ece6eb5807 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * 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 */ @@ -2563,7 +2563,7 @@ dns_zone_setmasterswithkeys(dns_zone_t *zone, isc_sockaddr_t *masters, /* * Similarly for mastersok. */ - newok = isc_mem_get(zone->mctx, count * sizeof(newok)); + newok = isc_mem_get(zone->mctx, count * sizeof(*newok)); if (newok == NULL) { result = ISC_R_NOMEMORY; isc_mem_put(zone->mctx, new, count * sizeof(*new));