summaryrefslogtreecommitdiff
path: root/lib/isc/inet_ntop.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-07 08:29:34 +0000
committer <>2015-04-13 18:52:43 +0000
commitb2ccf8dd31d1457ae9f0ae270054117179220370 (patch)
tree4ccd4a16d5e9ef5869630ba624e822665a6e248c /lib/isc/inet_ntop.c
parentbdab5265fcbf3f472545073a23f8999749a9f2b9 (diff)
downloadntp-4.2.8p2.tar.gz
Imported from /home/lorry/working-area/delta_ntp/ntp-4.2.8p2.tar.gz.HEADntp-4.2.8p2master
Diffstat (limited to 'lib/isc/inet_ntop.c')
-rw-r--r--lib/isc/inet_ntop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/isc/inet_ntop.c b/lib/isc/inet_ntop.c
index 26d5dca..7730180 100644
--- a/lib/isc/inet_ntop.c
+++ b/lib/isc/inet_ntop.c
@@ -135,6 +135,7 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3));
best.base = -1;
cur.base = -1;
+ best.len = cur.len = 0;
for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) {
if (words[i] == 0) {
if (cur.base == -1)