diff --git a/CHANGES b/CHANGES index f1193d09a7..226534ea38 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5459. [bug] Bad isc_mem_put() size when an invalid type was + specified in a update-policy rule. [GL #1990] + 5458. [bug] Prevent a theoretically possible NULL dereference caused by a data race between zone_maintenance() and dns_zone_setview_helper(). [GL #1627] diff --git a/bin/named/zoneconf.c b/bin/named/zoneconf.c index 4bd79ed6cc..486877df55 100644 --- a/bin/named/zoneconf.c +++ b/bin/named/zoneconf.c @@ -334,7 +334,7 @@ configure_zone_ssutable(const cfg_obj_t *zconfig, dns_zone_t *zone, ISC_LOG_ERROR, "'%.*s' is not a valid type", (int)r.length, str); - isc_mem_put(mctx, types, n * sizeof(types)); + isc_mem_put(mctx, types, n * sizeof(*types)); goto cleanup; } }