diff --git a/src/obproxy/iocore/net/ob_inet.h b/src/obproxy/iocore/net/ob_inet.h index 2beebaedfb602ac106a0b00af60ec53f57cfc21e..c7b31477aac0a0db78612d7abe6f229e3ed64e2c 100644 --- a/src/obproxy/iocore/net/ob_inet.h +++ b/src/obproxy/iocore/net/ob_inet.h @@ -562,6 +562,10 @@ inline bool ops_ip_copy(sockaddr &dst, const sockaddr &src) case AF_INET6: n2 = sizeof(sockaddr_in6); break; + + default: + n2 = sizeof(sockaddr_in); + break; } if (n && n <= n2) { MEMCPY(&dst, &src, n);