FreeBSD Bugzilla – Attachment 18442 Details for
Bug 33155
[PATCH] sshd can leave hanging processes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.03 KB, created by
peter.jeremy
on 2001-12-24 22:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
peter.jeremy
Created:
2001-12-24 22:20:01 UTC
Size:
1.03 KB
patch
obsolete
>Index: auth-pam.c >=================================================================== >RCS file: /usr/ncvs/src/crypto/openssh/auth-pam.c,v >retrieving revision 1.2.2.2 >diff -u -r1.2.2.2 auth-pam.c >--- auth-pam.c 28 Sep 2001 01:33:33 -0000 1.2.2.2 >+++ auth-pam.c 24 Dec 2001 11:23:18 -0000 >@@ -626,6 +626,13 @@ > int i; > char state; /* Which state did the connection just enter? */ > >+ close(ud->statefd[1]); >+ ud->statefd[1] = -1; >+ close(ud->challengefd[1]); >+ ud->challengefd[1] = -1; >+ close(ud->responsefd[0]); >+ ud->responsefd[0] = -1; >+ > /* We are the parent - wait for a call to the communications > function to turn up, or the challenge to be finished */ > if (read(ud->statefd[0], &state, 1) != 1) { >@@ -749,6 +756,13 @@ > int retval; > char state; > >+ close(ud->statefd[0]); >+ ud->statefd[0] = -1; >+ close(ud->challengefd[0]); >+ ud->challengefd[0] = -1; >+ close(ud->responsefd[1]); >+ ud->responsefd[1] = -1; >+ > conv.appdata_ptr = ud; > retval = pam_start(service, username, &conv, &pamh); > /* Is user really user? */
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 33155
: 18442