1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[inet_pton] Compilation fix

This commit is contained in:
Witold Filipczyk 2022-04-26 09:51:19 +02:00
parent 749d9ebab6
commit b76f48c683

View File

@ -289,7 +289,7 @@ match_uri_host_ip(const char *uri_host,
&& memcmp(cert_host_addr, &uri_host_in.s_addr, 4) == 0;
#else
return inet_pton(uri_host, &uri_host_in) != 0
return inet_pton(AF_INET, uri_host, &uri_host_in) != 0
&& memcmp(cert_host_addr, &uri_host_in.s_addr, 4) == 0;
#endif