mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 20:03:33 -04:00
CLEANUP: httpclient: Remove useless test on ss_dst in httpclient_applet_init()
In httpclient_applet_init() function, ss_dst variable is always defined before the call to sockaddr_alloc(). There is no reason to test it. This patch should fix the issue #1706.
This commit is contained in:
parent
9e3c8d5512
commit
f229e1894c
1 changed files with 0 additions and 5 deletions
|
|
@ -971,11 +971,6 @@ static int httpclient_applet_init(struct appctx *appctx)
|
|||
sock_inet_set_port(ss_dst, port);
|
||||
}
|
||||
|
||||
if (!ss_dst) {
|
||||
ha_alert("httpclient: Failed to initialize address %s:%d.\n", __FUNCTION__, __LINE__);
|
||||
goto out_error;
|
||||
}
|
||||
|
||||
if (!sockaddr_alloc(&addr, ss_dst, sizeof(*ss_dst)))
|
||||
goto out_error;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue