summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2011-09-30 21:22:50 +0000
committerDamien Miller <djm@cvs.openbsd.org>2011-09-30 21:22:50 +0000
commit3e759c864a9bddb49a3a4fe0c9ee9e2e40ea394d (patch)
tree20ba90cf2317b67ebe499402c389c23930ddce89
parent6f5468827e14ddd161d3c63c50b1448a5e82dfc1 (diff)
fix inverted test that caused logspam; spotted by henning@
-rw-r--r--usr.bin/ssh/sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 5373ae7ca80..c1736f08d4e 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.387 2011/09/30 00:47:37 dtucker Exp $ */
+/* $OpenBSD: sshd.c,v 1.388 2011/09/30 21:22:49 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2226,7 +2226,7 @@ cleanup_exit(int i)
if (use_privsep && privsep_is_preauth && pmonitor->m_pid > 1) {
debug("Killing privsep child %d", pmonitor->m_pid);
if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
- errno == ESRCH)
+ errno != ESRCH)
error("%s: kill(%d): %s", __func__,
pmonitor->m_pid, strerror(errno));
}