tplink-safeloader: stricter free_image_partition()
authorSander Vanheule <sander@svanheule.net>
Fri, 3 Feb 2023 22:03:15 +0000 (23:03 +0100)
committerSander Vanheule <sander@svanheule.net>
Sun, 12 Mar 2023 12:35:51 +0000 (13:35 +0100)
commit201a6c01ee0965c0562fe65e496f33eefac12c0a
treedbb91a88dfd382ffc234fefd2c2eebdf82efe524
parente7233d229c2c204563a8c70231b34ebb2a197400
tplink-safeloader: stricter free_image_partition()

Instead of only free()-ing the allocated data block, also clear the name
and size of a payload entry to indicate that it's become invalid.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
src/tplink-safeloader.c