← Commit list

3d8dfb77cf

Stefan Eissing
Stefan Eissing
2026-09-23
SUCCESS Duration: 388s

Subject

if2ip: check interface name case sensitive

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/if2ip.c+2 -2
@@ -110,7 +110,7 @@ if2ip_result_t Curl_if2ip(int af,
for(iface = head; iface; iface = iface->ifa_next) {
if(iface->ifa_addr) {
if(iface->ifa_addr->sa_family == af) {
- if(curl_strequal(iface->ifa_name, interf)) {
+ if(!strcmp(iface->ifa_name, interf)) {
void *addr;
char scope[12] = "";
char ipstr[64];
@@ -161,7 +161,7 @@ if2ip_result_t Curl_if2ip(int af,
}
}
else if((res == IF2IP_NOT_FOUND) &&
- curl_strequal(iface->ifa_name, interf)) {
+ !strcmp(iface->ifa_name, interf)) {
res = IF2IP_AF_NOT_SUPPORTED;
}
}