summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-19 00:32:20 +1000
committerDamien Miller <djm@mindrot.org>2006-08-19 00:32:20 +1000
commit99a648e59291d3adb39eeee4fa1f8a5b2ee2d769 (patch)
treebbf22dab3de359f05280994845c73c0a15bac9b9 /sshd.c
parenta1f6840a4fa1fd48ecbf5a3ebb2c3b18f3a6c587 (diff)
- deraadt@cvs.openbsd.org 2006/08/18 09:13:26
[log.c log.h sshd.c] make signal handler termination path shorter; risky code pointed out by mark dowd; ok djm markus
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index 7065d471b..f1f2e38b3 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.345 2006/08/16 11:47:15 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.346 2006/08/18 09:13:26 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -344,13 +344,11 @@ main_sigchld_handler(int sig)
344static void 344static void
345grace_alarm_handler(int sig) 345grace_alarm_handler(int sig)
346{ 346{
347 /* XXX no idea how fix this signal handler */
348
349 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) 347 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0)
350 kill(pmonitor->m_pid, SIGALRM); 348 kill(pmonitor->m_pid, SIGALRM);
351 349
352 /* Log error and exit. */ 350 /* Log error and exit. */
353 fatal("Timeout before authentication for %s", get_remote_ipaddr()); 351 sigdie("Timeout before authentication for %s", get_remote_ipaddr());
354} 352}
355 353
356/* 354/*