From: Alan T. DeKok Date: Sun, 17 Feb 2013 22:43:05 +0000 (-0500) Subject: No socket filename is a startup error X-Git-Tag: release_2_2_1~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51ba12267c97bd14bb71b04a9eb068c77b0341f;p=thirdparty%2Ffreeradius-server.git No socket filename is a startup error --- diff --git a/src/main/command.c b/src/main/command.c index 5aae86b438d..4667c29dfe1 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -1888,8 +1888,12 @@ static int command_socket_parse(CONF_SECTION *cs, rad_listen_t *this) return -1; } - sock->copy = NULL; - if (sock->path) sock->copy = strdup(sock->path); + if (!sock->path) { + radlog(L_ERR, "Socket name is requird"); + return -1; + } + + sock->copy = strdup(sock->path); #if defined(HAVE_GETPEEREID) || defined (SO_PEERCRED) if (sock->uid_name) {