summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/log-server.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-11-10 22:24:02 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-11-10 22:24:02 +0000
commitfdbbe9d996f09ecbd4f5c6cdafd452dcf2a32cfd (patch)
tree2fa144182eda9f9f7be565a2bb3ea8e80b6a4b21 /usr.bin/ssh/log-server.c
parentbc9e909965e411498ba0bc784d8b3580bfceed90 (diff)
remove x11- and krb-cleanup from fatal() + krb-cleanup cleanup
Diffstat (limited to 'usr.bin/ssh/log-server.c')
-rw-r--r--usr.bin/ssh/log-server.c36
1 files changed, 9 insertions, 27 deletions
diff --git a/usr.bin/ssh/log-server.c b/usr.bin/ssh/log-server.c
index 7f303b7c521..304099a85d5 100644
--- a/usr.bin/ssh/log-server.c
+++ b/usr.bin/ssh/log-server.c
@@ -15,7 +15,7 @@ to the system log.
*/
#include "includes.h"
-RCSID("$Id: log-server.c,v 1.5 1999/10/17 20:39:11 dugsong Exp $");
+RCSID("$Id: log-server.c,v 1.6 1999/11/10 22:24:01 markus Exp $");
#include <syslog.h>
#include "packet.h"
@@ -187,19 +187,16 @@ void fatal(const char *fmt, ...)
va_list args;
struct fatal_cleanup *cu, *next_cu;
static int fatal_called = 0;
-#if defined(KRB4)
- extern char *ticket;
-#endif /* KRB4 */
DECL_MSGBUF;
- if (log_quiet)
- exit(1);
- va_start(args, fmt);
- vsnprintf(msgbuf, MSGBUFSIZE, fmt, args);
- va_end(args);
- if (log_on_stderr)
- fprintf(stderr, "fatal: %s\n", msgbuf);
- syslog(LOG_ERR, "fatal: %.500s", msgbuf);
+ if (!log_quiet) {
+ va_start(args, fmt);
+ vsnprintf(msgbuf, MSGBUFSIZE, fmt, args);
+ va_end(args);
+ if (log_on_stderr)
+ fprintf(stderr, "fatal: %s\n", msgbuf);
+ syslog(LOG_ERR, "fatal: %.500s", msgbuf);
+ }
if (fatal_called)
exit(1);
@@ -213,21 +210,6 @@ void fatal(const char *fmt, ...)
(unsigned long)cu->proc, (unsigned long)cu->context);
(*cu->proc)(cu->context);
}
-#if defined(KRB4)
- /* If you forwarded a ticket you get one shot for proper
- authentication. */
- /* If tgt was passed unlink file */
- if (ticket)
- {
- if (strcmp(ticket,"none"))
- unlink(ticket);
- else
- ticket = NULL;
- }
-#endif /* KRB4 */
-
- /* If local XAUTHORITY was created, remove it. */
- if (xauthfile) unlink(xauthfile);
exit(1);
}