diff options
-rw-r--r-- | lib/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c index e65d24d9e..6e4608d98 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -680,6 +680,7 @@ void Curl_conninfo_remote(struct connectdata *conn, curl_socket_t sockfd) struct Curl_sockaddr_storage ssrem; curl_socklen_t plen; plen = sizeof(struct Curl_sockaddr_storage); + memset(&ssrem, 0, sizeof(ssrem)); if(getpeername(sockfd, (struct sockaddr*) &ssrem, &plen)) { int error = SOCKERRNO; failf(conn->data, "getpeername() failed with errno %d: %s", |