summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/changes.xml7
-rw-r--r--src/nxt_sockaddr.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/changes.xml b/docs/changes.xml
index 2af2fc90..1d77aea7 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -45,6 +45,13 @@ process stopped or crashed.
</para>
</change>
+<change type="bugfix">
+<para>
+the controller or router process could crash if the configuration contained
+a full-form IPv6 in a listener address.
+</para>
+</change>
+
</changes>
diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c
index af696a6b..47ee165f 100644
--- a/src/nxt_sockaddr.c
+++ b/src/nxt_sockaddr.c
@@ -525,9 +525,9 @@ nxt_inet6_ntop(u_char *addr, u_char *buf, u_char *end)
return buf;
}
- zero_start = 8;
+ zero_start = 16;
zero_groups = 0;
- last_zero_start = 8;
+ last_zero_start = 16;
last_zero_groups = 0;
for (i = 0; i < 16; i += 2) {