Commit ded99992 authored by rl1987's avatar rl1987 Committed by rl1987
Browse files

Bail out of format_networkstatus_vote if fmt_addr32() failed.

Something is fishy if we cannot put IP address string into dir-vote line.
parent 38cbfda1
......@@ -372,6 +372,9 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment