From 6506693f0b5a46f18ac63f792036c69a33031faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 19 Apr 2026 18:09:29 +0200 Subject: [PATCH] lib1960: fix test failure On platforms where struct sockaddr has a length field, the current code leaves it uninitialized, resulting in a test failure when valgrind is used. Closes #21377 --- tests/libtest/lib1960.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libtest/lib1960.c b/tests/libtest/lib1960.c index 1e31cc5b3a..2ce9a7540d 100644 --- a/tests/libtest/lib1960.c +++ b/tests/libtest/lib1960.c @@ -100,6 +100,7 @@ static CURLcode test_lib1960(const char *URL) goto test_cleanup; } + memset(&serv_addr, 0, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; serv_addr.sin_port = htons((unsigned short)port);