hs-v3: Don't crash after SIGHUP in Onionbalance backend mode.
commit0667a5af8df8f372f6482254ca24c66268ed02f8
authorGeorge Kadianakis <desnacked@riseup.net>
Mon, 30 Mar 2020 20:17:39 +0000 (30 23:17 +0300)
committerGeorge Kadianakis <desnacked@riseup.net>
Mon, 30 Mar 2020 20:35:19 +0000 (30 23:35 +0300)
tree68284d7ba4a121e07620ec8ca3a4f5be233be360
parent9061303080e6b707ae6c9d77a05e27bf86ec948f
hs-v3: Don't crash after SIGHUP in Onionbalance backend mode.

The ob_subcreds array was not copied after SIGHUP, and that left the
post-SIGHUP service with a NULL ob_subcreds pointer (until the next descriptor
gets build where we regenerate ob_subcreds in hs_ob_refresh_keys()).

Fixes bug #33762; not in any released tor version.
src/feature/hs/hs_service.c