aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-08-27 14:31:42 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-27 14:31:42 +0200
commite3e208fb9f2adc5bf47353708ef53199a0f85db6 (patch)
tree8becf7ef0d8000d1576689529bd957753e54741f /src
parent0709280175c5dbf2a3dc03fbcc01fcf691a585b8 (diff)
downloadstrongswan-e3e208fb9f2adc5bf47353708ef53199a0f85db6.tar.bz2
strongswan-e3e208fb9f2adc5bf47353708ef53199a0f85db6.tar.xz
ha: Close control FIFO if it is not valid
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/ha/ha_ctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/plugins/ha/ha_ctl.c b/src/libcharon/plugins/ha/ha_ctl.c
index 27ebb91c5..54302e852 100644
--- a/src/libcharon/plugins/ha/ha_ctl.c
+++ b/src/libcharon/plugins/ha/ha_ctl.c
@@ -111,6 +111,10 @@ static job_requeue_t dispatch_fifo(private_ha_ctl_t *this)
DBG1(DBG_CFG, "%s is not a FIFO, recreate it", HA_FIFO);
recreate_fifo();
}
+ if (fifo != -1)
+ {
+ close(fifo);
+ }
sleep(1);
return JOB_REQUEUE_FAIR;
}