tidy-up: replace (1 == expressions pton

This commit is contained in:
Viktor Szakats 2025-07-09 19:41:34 +02:00
parent 4034bc7ebf
commit 29e22ef65b
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 6 additions and 6 deletions

View file

@ -884,7 +884,7 @@ CONNECT_RESOLVE_REMOTE:
}
else
#endif
if(1 == curlx_inet_pton(AF_INET, sx->hostname, ip4)) {
if(curlx_inet_pton(AF_INET, sx->hostname, ip4) == 1) {
socksreq[len++] = 1;
memcpy(&socksreq[len], ip4, sizeof(ip4));
len += sizeof(ip4);