Search
j0ke.net Open Build Service
>
Projects
>
ha
>
keepalived-ipv6
> keepalived-FD_leak.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File keepalived-FD_leak.patch of Package keepalived-ipv6 (Revision 25)
Currently displaying revision
25
,
show latest
--- keepalived/check/check_http.c.orig 2011-08-10 16:29:21.328399452 +0200 +++ keepalived/check/check_http.c 2011-08-10 16:40:20.262536921 +0200 @@ -877,6 +877,7 @@ status = tcp_bind_connect(fd, &http_get_check->dst, &http_get_check->bindto); if (status == connect_error) { + close(fd); thread_add_timer(thread->master, http_connect_thread, checker, checker->vs->delay_loop); return 0; --- keepalived/check/check_tcp.c.orig 2011-08-10 16:29:38.389119167 +0200 +++ keepalived/check/check_tcp.c 2011-08-10 16:40:32.882538123 +0200 @@ -175,6 +175,7 @@ status = tcp_bind_connect(fd, &tcp_check->dst, &tcp_check->bindto); if (status == connect_error) { + close(fd); thread_add_timer(thread->master, tcp_connect_thread, checker, checker->vs->delay_loop); return 0; --- keepalived/check/check_smtp.c.orig 2011-08-10 16:29:28.205173090 +0200 +++ keepalived/check/check_smtp.c 2011-08-10 16:40:46.650537342 +0200 @@ -819,6 +819,7 @@ status = tcp_bind_connect(sd, &smtp_host->dst, &smtp_host->bindto); if (status == connect_error) { + close(sd); thread_add_timer(thread->master, smtp_connect_thread, checker, checker->vs->delay_loop); return 0;