From 15bc4073c030ffd340a715efae94aea583d1429d Mon Sep 17 00:00:00 2001 From: matthieu Date: Wed, 11 Jul 2018 19:51:12 +0000 Subject: [PATCH] The file descriptor parameter is not used by DefineSelf() in xenodm. Zap it. --- app/xenodm/xenodm/auth.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/xenodm/xenodm/auth.c b/app/xenodm/xenodm/auth.c index 7f022ec88..0f9528dfa 100644 --- a/app/xenodm/xenodm/auth.c +++ b/app/xenodm/xenodm/auth.c @@ -663,7 +663,7 @@ DefineLocal (FILE *file, Xauth *auth) # include static void -DefineSelf(int fd, FILE *file, Xauth *auth) +DefineSelf(FILE *file, Xauth *auth) { struct ifaddrs *ifap, *ifr; char *addr; @@ -738,16 +738,11 @@ setAuthNumber (Xauth *auth, char *name) static void writeLocalAuth (FILE *file, Xauth *auth, char *name) { - int fd; Debug ("writeLocalAuth: %s %.*s\n", name, auth->name_length, auth->name); setAuthNumber (auth, name); #ifdef TCPCONN - fd = socket (AF_INET6, SOCK_STREAM, 0); - if (fd < 0) - fd = socket (AF_INET, SOCK_STREAM, 0); - DefineSelf (fd, file, auth); - close (fd); + DefineSelf (file, auth); #endif DefineLocal (file, auth); }