$OpenBSD: patch-src_IO_http_c,v 1.9 2004/12/04 20:44:27 couderc Exp $ --- src/IO/http.c.orig Wed Oct 6 19:09:44 2004 +++ src/IO/http.c Sat Dec 4 19:28:46 2004 @@ -316,6 +316,7 @@ static int Http_connect_socket(ChainLink struct sockaddr_in *sin = (struct sockaddr_in *)&name; socket_len = sizeof(struct sockaddr_in); sin->sin_family = dh->af; + sin->sin_len = socket_len; sin->sin_port = S->port ? htons(S->port) : htons(DILLO_URL_HTTP_PORT); memcpy(&sin->sin_addr, dh->data, dh->alen); if (a_Web_valid(S->web) && (S->web->flags & WEB_RootUrl)) @@ -330,6 +331,7 @@ static int Http_connect_socket(ChainLink socket_len = sizeof(struct sockaddr_in6); sin6->sin6_family = dh->af; sin6->sin6_port = S->port ? htons(S->port) : htons(DILLO_URL_HTTP_PORT); + sin6->sin6_len = socket_len; memcpy(&sin6->sin6_addr, dh->data, dh->alen); inet_ntop(dh->af, dh->data, buf, sizeof(buf)); if (a_Web_valid(S->web) && (S->web->flags & WEB_RootUrl))