Skip to content

Commit

Permalink
No socket filename is a startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Feb 17, 2013
1 parent c244d58 commit f51ba12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/command.c
Expand Up @@ -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) {
Expand Down

0 comments on commit f51ba12

Please sign in to comment.