From: Alan T. DeKok Date: Tue, 14 Mar 2017 23:27:02 +0000 (-0400) Subject: remove unused variable X-Git-Tag: release_3_0_14~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9bfc70efbf575258425d2ca86160490e0c36a45;p=thirdparty%2Ffreeradius-server.git remove unused variable --- diff --git a/src/main/command.c b/src/main/command.c index d3b729f9a5a..e9d635a2100 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -345,7 +345,7 @@ static int fr_server_domain_socket_perm(UNUSED char const *path, UNUSED uid_t ui */ static int fr_server_domain_socket_perm(char const *path, uid_t uid, gid_t gid) { - int dir_fd = -1, path_fd = -1, sock_fd = -1, parent_fd = -1; + int dir_fd = -1, sock_fd = -1, parent_fd = -1; char const *name; char *buff = NULL, *dir = NULL, *p; @@ -393,7 +393,6 @@ static int fr_server_domain_socket_perm(char const *path, uid_t uid, gid_t gid) error: talloc_free(dir); close(dir_fd); - close(path_fd); return -1; } @@ -677,7 +676,6 @@ static int fr_server_domain_socket_perm(char const *path, uid_t uid, gid_t gid) if (gid != (gid_t)-1) rad_segid(egid); close(dir_fd); - close(path_fd); return sock_fd; }