Zero out resolved address before calling accept

pull/14723/head
Yash Tibrewal 7 years ago
parent 7e24da469c
commit 81a3376d7d
  1. 1
      src/core/lib/iomgr/tcp_server_posix.cc

@ -213,6 +213,7 @@ static void on_read(void* arg, grpc_error* err) {
grpc_resolved_address addr;
char* addr_str;
char* name;
memset(&addr, 0, sizeof(addr));
addr.len = sizeof(struct sockaddr_storage);
/* Note: If we ever decide to return this address to the user, remember to
strip off the ::ffff:0.0.0.0/96 prefix first. */

Loading…
Cancel
Save