use *newrdatas rather than *oldrdatas in sizeof for consistency [RT #41131]

(cherry picked from commit a248b59381)
This commit is contained in:
Mark Andrews 2015-11-17 06:24:32 +11:00
parent 3cf5c97ae9
commit 5857144184

View file

@ -184,7 +184,7 @@ iterate_node(lwres_grbnresponse_t *grbn, dns_db_t *db, dns_dbnode_t *node,
if (oldlens != NULL)
isc_mem_put(mctx, oldlens, oldsize * sizeof(*oldlens));
if (newrdatas != NULL)
isc_mem_put(mctx, newrdatas, used * sizeof(*oldrdatas));
isc_mem_put(mctx, newrdatas, used * sizeof(*newrdatas));
return (result);
}