Loading lib/if2ip.c +12 −3 Original line number Diff line number Diff line Loading @@ -124,6 +124,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, #ifndef ENABLE_IPV6 (void) remote_scope; #ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID (void) remote_scope_id; #endif #endif if(getifaddrs(&head) >= 0) { Loading Loading @@ -157,7 +162,9 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, /* If given, scope id should match. */ if(remote_scope_id && scopeid != remote_scope_id) { if(res == IF2IP_NOT_FOUND) res = IF2IP_AF_NOT_SUPPORTED; if(res == IF2IP_NOT_FOUND) res = IF2IP_AF_NOT_SUPPORTED; continue; } #endif Loading @@ -179,8 +186,10 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, } } } freeifaddrs(head); } return res; } Loading Loading
lib/if2ip.c +12 −3 Original line number Diff line number Diff line Loading @@ -124,6 +124,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, #ifndef ENABLE_IPV6 (void) remote_scope; #ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID (void) remote_scope_id; #endif #endif if(getifaddrs(&head) >= 0) { Loading Loading @@ -157,7 +162,9 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, /* If given, scope id should match. */ if(remote_scope_id && scopeid != remote_scope_id) { if(res == IF2IP_NOT_FOUND) res = IF2IP_AF_NOT_SUPPORTED; if(res == IF2IP_NOT_FOUND) res = IF2IP_AF_NOT_SUPPORTED; continue; } #endif Loading @@ -179,8 +186,10 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, } } } freeifaddrs(head); } return res; } Loading