Bugzilla – Attachment 2369 Details for
Bug 2167
Connection remains when fork() fails.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch which fixes this problem.
sshd.diff (text/plain), 747 bytes, created by
Tetsuo Handa
on 2013-11-01 15:32:25 AEDT
(
hide
)
Description:
A patch which fixes this problem.
Filename:
MIME Type:
Creator:
Tetsuo Handa
Created:
2013-11-01 15:32:25 AEDT
Size:
747 bytes
patch
obsolete
>--- openssh-5.3p1.orig/sshd.c >+++ openssh-5.3p1/sshd.c >@@ -686,6 +686,7 @@ privsep_preauth(Authctxt *authctxt) > > pid = fork(); > if (pid == -1) { >+ pmonitor->m_recvfd = EOF; > fatal("fork of unprivileged child failed"); > } else if (pid != 0) { > debug2("Network child is on pid %ld", (long)pid); >@@ -737,9 +738,10 @@ privsep_postauth(Authctxt *authctxt) > monitor_reinit(pmonitor); > > pmonitor->m_pid = fork(); >- if (pmonitor->m_pid == -1) >+ if (pmonitor->m_pid == -1) { >+ pmonitor->m_recvfd = EOF; > fatal("fork of unprivileged child failed"); >- else if (pmonitor->m_pid != 0) { >+ } else if (pmonitor->m_pid != 0) { > verbose("User child is on pid %ld", (long)pmonitor->m_pid); > close(pmonitor->m_recvfd); > buffer_clear(&loginmsg);
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
Actions:
View
|
Diff
Attachments on
bug 2167
:
2368
| 2369