From fda7f00321c88e832c852d7bc9da2daa8a018d97 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 23 Dec 2016 09:59:41 -0500 Subject: [PATCH] Note memset as redundant; see 20764. --- src/common/address.c | 2 ++ 1 file changed, 2 insertions(+) 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) {