mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Note memset as redundant; see 20764.
This commit is contained in:
parent
70243affe7
commit
fda7f00321
@ -159,6 +159,8 @@ tor_addr_from_sockaddr(tor_addr_t *a, const struct sockaddr *sa,
|
|||||||
tor_assert(a);
|
tor_assert(a);
|
||||||
tor_assert(sa);
|
tor_assert(sa);
|
||||||
|
|
||||||
|
/* This memset is redundant; leaving it in to avoid any future accidents,
|
||||||
|
however. */
|
||||||
memset(a, 0, sizeof(*a));
|
memset(a, 0, sizeof(*a));
|
||||||
|
|
||||||
if (sa->sa_family == AF_INET) {
|
if (sa->sa_family == AF_INET) {
|
||||||
|
Loading…
Reference in New Issue
Block a user