mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
nss-resolve: remove dead code
ifindex < 0 was already checked before entering the loop Found by coverity. Fixes: CID#1237609
This commit is contained in:
parent
6c8aaf0c1b
commit
4eef5b7441
@ -466,11 +466,6 @@ enum nss_status _nss_resolve_gethostbyname3_r(
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (ifindex < 0) {
|
||||
r = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
memcpy(r_addr + i*ALIGN(alen), a, alen);
|
||||
i++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user