Commit d3b3cfdf authored by Mark Andrews's avatar Mark Andrews
Browse files

#1864 had a size(foo) instead of sizeof(*foo) which broke on 64 bit machines.

parent d4d68515
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment