mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-28 13:24:28 -04:00
MEDIUM: server: remove a useless memset() in srv_update_check_addr_port.
Remove a memset that should not be there, and tries to zero a NULL pointer.
This commit is contained in:
parent
1b0dfff552
commit
0e36267aac
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue