mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Bail out of format_networkstatus_vote if fmt_addr32() failed.
Something is fishy if we cannot put IP address string into dir-vote line.
This commit is contained in:
parent
38cbfda119
commit
ded99992b8
@ -372,6 +372,9 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
|
||||
tor_free(bw_headers_line);
|
||||
tor_free(bw_file_digest);
|
||||
|
||||
if (ip_str[0] == '\0')
|
||||
goto err;
|
||||
|
||||
if (!tor_digest_is_zero(voter->legacy_id_digest)) {
|
||||
char fpbuf[HEX_DIGEST_LEN+1];
|
||||
base16_encode(fpbuf, sizeof(fpbuf), voter->legacy_id_digest, DIGEST_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user