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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user