From d3b3cfdf0d4fc682d808b5a541689881fb371f8c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 10 Jun 2005 07:51:54 +0000 Subject: [PATCH] #1864 had a size(foo) instead of sizeof(*foo) which broke on 64 bit machines. --- lib/dns/zone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));