Duplicate memset call in tor_addr_from_sockaddr
Hey folks,
I hope that you're all doing well and life is good!
When staring grumpily at bug https://trac.torproject.org/projects/tor/ticket/20716 I noticed that memset(addr, 0,...) is called on the address in tor_addr_from_sockaddr and then again in either tor_addr_from_ipv4n, tor_addr_from_ipv6_bytes, tor_addr_make_af_unix or tor_addr_make_unspec.
The attached removes the memset call from tor_addr_from_sockaddr.
Thanks in advance for perusal :)
Trac:
Username: icanhasaccount