summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-26 20:27:25 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-26 20:27:25 +0100
commit44cc9f2d769596c41f2ace9a4093651b0688d0f8 (patch)
treea0a578c6a1d5e2d56aec3b836bd4b97e43b000be
parent9766c16bd08bd6714064ee950798a6db0874b048 (diff)
parent963783d7447cad48e594846a865b26535874679d (diff)
Merge pull request #2442 from samukallio/nss-resolve-fix-aliases
nss-resolve: fix gethostbyaddr h_aliases
-rw-r--r--src/nss-resolve/nss-resolve.c2
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++;