From: Alan T. DeKok Date: Mon, 14 Sep 2015 15:48:10 +0000 (-0400) Subject: Don't unlink socket if we can't open it X-Git-Tag: release_3_0_10~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c184a7313ae1fe2582c258fcd0c976ec6d77ca99;p=thirdparty%2Ffreeradius-server.git Don't unlink socket if we can't open it --- diff --git a/src/main/command.c b/src/main/command.c index f2b54ccd382..8242e41c055 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -2720,6 +2720,8 @@ static int command_socket_parse_unix(CONF_SECTION *cs, rad_listen_t *this) if (this->fd < 0) { ERROR("Failed creating control socket \"%s\": %s", sock->path, fr_strerror()); + if (sock->copy) talloc_free(sock->copy); + sock->copy = NULL; return -1; }