aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/listen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c
index cf4628c07..2b9b38619 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -178,6 +178,8 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param)
if (path_length >= sizeof(sun.sun_path))
FATAL("unix socket path is too long\n");
+ unlink(param->value);
+
sun.sun_family = AF_UNIX;
memcpy(sun.sun_path, param->value, path_length + 1);