commit eb6a4e9740237bd1bd71c115476e187520a2fc8c
parent 73f5a5bc2b97fb36ded8feb36828d598d6e9fed3
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 20 Sep 2020 15:14:04 -0400
Set SOCK_STREAM regardless of hints
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client.c b/src/client.c
@@ -31,8 +31,8 @@ gemini_get_addrinfo(struct Curl_URL *uri, struct gemini_options *options,
hints = *options->hints;
} else {
hints.ai_family = AF_UNSPEC;
- hints.ai_socktype = SOCK_STREAM;
}
+ hints.ai_socktype = SOCK_STREAM;
char pbuf[7];
snprintf(pbuf, sizeof(pbuf), "%d", port);