Skip to content

tor-proto: Replace repeating pattern with fill

Emil Engler requested to merge emilengler/arti:less-spaghetti-zeroize into main

This commit replaces a repeating code pattern in the set_digest function for setting the 'Recognized' and Digest field to zero with a slice fillment.

Besides this, it also adds comments explaining which fields are currently getting zeroized.

Merge request reports