Check the return value of hs_parse_address().
commit9fa38bd996e345990b81bce0995a25be2ee4c98f
authorAlexander Færøy <ahf@torproject.org>
Wed, 6 Dec 2017 13:52:02 +0000 (6 14:52 +0100)
committerAlexander Færøy <ahf@torproject.org>
Wed, 6 Dec 2017 13:56:52 +0000 (6 14:56 +0100)
tree54b794d4344b2677b4a7bf47f8ddc1d699791a06
parent01700d779ca2a0cfb40b04741e3cdda5874d2156
Check the return value of hs_parse_address().

This patch adds a check for the return value of `hs_parse_address()` in
`hs_control_hspost_command()`. Since it should not be possible for
`hs_parse_address()` to fail in this context we wrap the error check
with the `BUG()` macro.

See: https://bugs.torproject.org/24543
src/or/hs_control.c