MEDIUM: server: remove a useless memset() in srv_update_check_addr_port.
Some checks are pending
Contrib / build (push) Waiting to run
alpine/musl / gcc (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run

Remove a memset that should not be there, and tries to zero a NULL pointer.
This commit is contained in:
Olivier Houchard 2026-03-26 16:43:48 +01:00
parent 1b0dfff552
commit 0e36267aac

View file

@ -4667,7 +4667,6 @@ const char *srv_update_check_addr_port(struct server *s, const char *addr, const
goto out;
}
if (addr) {
memset(&sk, 0, sizeof(struct sockaddr_storage));
sk = str2sa_range(addr, NULL, NULL, NULL, NULL, &proto, NULL, NULL, NULL, NULL, NULL, 0);
if (sk == NULL) {
chunk_appendf(msg, "invalid addr '%s'", addr);