On Tue, 3 Mar 2015, Brent Cook wrote: ... > It looks like resolve_remote always expects at least sizeof(struct > sockaddr_in6) bytes to be returned from getaddrinfo(), rather than > checking the sin_len before copying.
Nice catch! One small note: OpenVPN (and other programs using getaddrinfo()) should use ai->ai_addrlen for this; portable programs can't depend on sa_len existing. Philip Guenther
