summaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-23 09:59:41 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-23 09:59:41 -0500
commitfda7f00321c88e832c852d7bc9da2daa8a018d97 (patch)
treead9b0eb598e634a5c07aefd1a314e97d2f3b861c /src/common/address.c
parent70243affe7cb013978b010448ecbc305a8f1bb09 (diff)
downloadtor-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.c2
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) {