init some important variables and check that they are set checking
authentication, all to please gcc git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15358 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -664,7 +664,7 @@ doit (void)
|
||||
socklen_t thisaddr_len, thataddr_len;
|
||||
int port;
|
||||
int errsock = -1;
|
||||
char *client_user, *server_user, *cmd;
|
||||
char *client_user = NULL, *server_user = NULL, *cmd = NULL;
|
||||
struct passwd *pwd;
|
||||
int s = STDIN_FILENO;
|
||||
char **env;
|
||||
@@ -771,6 +771,9 @@ doit (void)
|
||||
syslog_and_die("recv_bsd_auth failed");
|
||||
}
|
||||
|
||||
if (client_user == NULL || server_user == NULL || cmd == NULL)
|
||||
syslog_and_die("mising client/server/cmd");
|
||||
|
||||
#if defined(DCE) && defined(_AIX)
|
||||
esetenv("AUTHSTATE", "DCE", 1);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user