From b773d522f81e9663e2d4ac15afb4426c98df1803 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 1 Aug 2024 08:38:43 +0100 Subject: [PATCH] * src/ne_session.c (set_hostinfo): Fix regression in 532ba270 for non-scoped IPv6 literal addresses. --- src/ne_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ne_session.c b/src/ne_session.c index 9d7aff25..85fedcea 100644 --- a/src/ne_session.c +++ b/src/ne_session.c @@ -180,7 +180,7 @@ static void set_hostinfo(struct host_info *hi, enum proxy_type type, if (!ia && hlen >= V6_ADDR_MINLEN && hi->hostname[0] == '[' && hi->hostname[hlen-1] == ']') { const char *v6end, *v6start = hi->hostname + 1; - char *v6lit, *scope; + char *v6lit, *scope = NULL; /* Parse here, see if there is a Zone ID: * IPv6addrzb => v6start = IPv6address "%25" ZoneID */