Changeset: 0bf0f78b123d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0bf0f78b123d
Modified Files:
gdk/gdk_atoms.c
Branch: Dec2025
Log Message:
Don't convert single 0 in ipv6 address to ::.
diffs (14 lines):
diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -1811,6 +1811,10 @@ INET6toString(allocator *ma, str *retval
/* nils should never reach us here */
assert(best_len < 16);
+ if (best_len <= 2) {
+ best_len = 0;
+ best_start = 16;
+ }
/* Special case: IPv4-mapped IPv6 address */
if (best_start == 0 && best_len == 10 && value->hex[10] == 0xFF &&
value->hex[11] == 0xFF) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]