Bugzilla – Attachment 3504 Details for
Bug 3286
sshd dumps core after authentication timeout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
avoid sigdie() in privsep child
bz3286.diff (text/plain), 762 bytes, created by
Damien Miller
on 2021-04-30 15:25:50 AEST
(
hide
)
Description:
avoid sigdie() in privsep child
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2021-04-30 15:25:50 AEST
Size:
762 bytes
patch
obsolete
>diff --git a/sshd.c b/sshd.c >index d669671..dfd8b2a 100644 >--- a/sshd.c >+++ b/sshd.c >@@ -343,11 +343,14 @@ grace_alarm_handler(int sig) > kill(0, SIGTERM); > } > >- /* XXX pre-format ipaddr/port so we don't need to access active_state */ > /* Log error and exit. */ >- sigdie("Timeout before authentication for %s port %d", >- ssh_remote_ipaddr(the_active_state), >- ssh_remote_port(the_active_state)); >+ if (use_privsep && pmonitor != NULL && pmonitor->m_pid <= 0) >+ cleanup_exit(255); /* don't log in privsep child */ >+ else { >+ sigdie("Timeout before authentication for %s port %d", >+ ssh_remote_ipaddr(the_active_state), >+ ssh_remote_port(the_active_state)); >+ } > } > > /* Destroy the host and server keys. They will no longer be needed. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 3286
:
3482
|
3483
|
3484
|
3485
|
3486
| 3504