rsync: make blkhash_free() callable with NULL.
authortb <tb@openbsd.org>
Fri, 27 Sep 2024 13:13:14 +0000 (13:13 +0000)
committertb <tb@openbsd.org>
Fri, 27 Sep 2024 13:13:14 +0000 (13:13 +0000)
commit7eb67ff9a029ded5e7c98bba369a471c1bd0f5da
treeb004b5ceebc5f3f95ef36f715f70c8f8b860f9a2
parent54ac47722f20707625db02ce26ac8072e716fb52
rsync: make blkhash_free() callable with NULL.

It is in principle possible that blkhash_free() (which obviously frees
a struct blktab, sigh) is called with NULL. This would lead to a crash.

ok claudio
usr.bin/rsync/blocks.c