diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-26 20:27:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-26 20:27:25 +0100 |
commit | 44cc9f2d769596c41f2ace9a4093651b0688d0f8 (patch) | |
tree | a0a578c6a1d5e2d56aec3b836bd4b97e43b000be /src/nss-resolve/nss-resolve.c | |
parent | 9766c16bd08bd6714064ee950798a6db0874b048 (diff) | |
parent | 963783d7447cad48e594846a865b26535874679d (diff) |
Merge pull request #2442 from samukallio/nss-resolve-fix-aliases
nss-resolve: fix gethostbyaddr h_aliases
Diffstat (limited to 'src/nss-resolve/nss-resolve.c')
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index a268c3ac31..2b716a69d1 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -659,7 +659,7 @@ enum nss_status _nss_resolve_gethostbyaddr2_r( p = buffer + idx; memcpy(p, n, l+1); - if (i > 1) + if (i > 0) ((char**) r_aliases)[i-1] = p; i++; |