diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-09-17 20:48:39 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-09-17 20:50:36 +0200 |
commit | 4eef5b7441692c962af57eab7bb758f1cfdece35 (patch) | |
tree | 975e8f1a2cc2be5c52cc665f05f1f15802dd7c01 /src/nss-resolve/nss-resolve.c | |
parent | 6c8aaf0c1bf2a04010ae7125a08ceb51e7058712 (diff) |
nss-resolve: remove dead code
ifindex < 0 was already checked before entering the loop
Found by coverity. Fixes: CID#1237609
Diffstat (limited to 'src/nss-resolve/nss-resolve.c')
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index bc55acf8dd..39b73203d2 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -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++; } |