]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use sizeof(*ptr) for allocating/freeing memory in forward.c
authorAram Sargsyan <aram@isc.org>
Mon, 12 Dec 2022 09:20:48 +0000 (09:20 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Wed, 11 Jan 2023 12:41:06 +0000 (12:41 +0000)
commitcf4003fa5801230a7e844e2abe5878520a58a748
treec63475631e0760e478fd4491fd11250a835a8399
parent0cc1b06d98676ab66200d388c48c3cd615aa0109
Use sizeof(*ptr) for allocating/freeing memory in forward.c

As shown in the previous commit, using sizeof(type_t) is a little
bit more error-prone when copy-pasting code, so extracting the
size information from the pointer which is being dealt with seems
like a better alternative.
lib/dns/forward.c