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:
Love Hörnquist Åstrand
2005-06-08 17:55:06 +00:00
parent 956bab4cf0
commit 0133868c80

View File

@@ -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