mirror of
https://github.com/curl/curl.git
synced 2026-07-25 13:47:23 +03:00
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
This commit is contained in:
parent
ebed4aaf01
commit
6506693f0b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue