diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-23 09:59:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-23 09:59:41 -0500 |
commit | fda7f00321c88e832c852d7bc9da2daa8a018d97 (patch) | |
tree | ad9b0eb598e634a5c07aefd1a314e97d2f3b861c /src/common/address.c | |
parent | 70243affe7cb013978b010448ecbc305a8f1bb09 (diff) | |
download | tor-fda7f00321c88e832c852d7bc9da2daa8a018d97.tar.gz tor-fda7f00321c88e832c852d7bc9da2daa8a018d97.zip |
Note memset as redundant; see 20764.
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/address.c b/src/common/address.c index c89e8797c6..a5dbae453a 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -159,6 +159,8 @@ tor_addr_from_sockaddr(tor_addr_t *a, const struct sockaddr *sa, tor_assert(a); tor_assert(sa); + /* This memset is redundant; leaving it in to avoid any future accidents, + however. */ memset(a, 0, sizeof(*a)); if (sa->sa_family == AF_INET) { |