summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-26 14:59:01 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-27 09:19:12 +0100
commite76b058f3c9a314edbc1a214e1eaf6ef21955bd9 (patch)
treef272b62819f51cff2ddd59a63447ef3805423e5f /lib/connect.c
parent1c3def53c71f85bb3ae16cd4c39dbdcc2a6c460f (diff)
downloadcurl-e76b058f3c9a314edbc1a214e1eaf6ef21955bd9.tar.gz
urldata: store ip version in a single byte
Closes #6534
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 236fece07..1e9434bb6 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -348,7 +348,7 @@ static CURLcode bindlocal(struct Curl_easy *data,
* of the connection. The resolve functions should really be changed
* to take a type parameter instead.
*/
- long ipver = conn->ip_version;
+ unsigned char ipver = conn->ip_version;
int rc;
if(af == AF_INET)