diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.421 2014/03/26 19:58:37 tedu Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.423 2014/04/12 04:55:53 djm 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 |
@@ -2484,7 +2484,8 @@ cleanup_exit(int i) | |||
2484 | { | 2484 | { |
2485 | if (the_authctxt) { | 2485 | if (the_authctxt) { |
2486 | do_cleanup(the_authctxt); | 2486 | do_cleanup(the_authctxt); |
2487 | if (use_privsep && privsep_is_preauth && pmonitor->m_pid > 1) { | 2487 | if (use_privsep && privsep_is_preauth && |
2488 | pmonitor != NULL && pmonitor->m_pid > 1) { | ||
2488 | debug("Killing privsep child %d", pmonitor->m_pid); | 2489 | debug("Killing privsep child %d", pmonitor->m_pid); |
2489 | if (kill(pmonitor->m_pid, SIGKILL) != 0 && | 2490 | if (kill(pmonitor->m_pid, SIGKILL) != 0 && |
2490 | errno != ESRCH) | 2491 | errno != ESRCH) |