Bugzilla – Attachment 693 Details for
Bug 902
get_remote_port() can kill sshd in auth_log()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix
openssh-3.8.1p1-getpeername.patch (text/plain), 429 bytes, created by
Pavel Kankovsky
on 2004-07-21 09:10:07 AEST
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Pavel Kankovsky
Created:
2004-07-21 09:10:07 AEST
Size:
429 bytes
patch
obsolete
>diff -urN openssh-3.8.1p1/canohost.c openssh-3.8.1p1.new/canohost.c >--- openssh-3.8.1p1/canohost.c Wed Mar 31 07:17:54 2004 >+++ openssh-3.8.1p1.new/canohost.c Fri Jul 9 01:59:07 2004 >@@ -382,7 +382,14 @@ > int > get_remote_port(void) > { >- return get_port(0); >+ /* >+ * Caching is needed to avoid getpeername() on a dead connection. >+ */ >+ static int port = -1; >+ >+ if (port == -1) >+ port = get_port(0); >+ return port; > } > > int
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 902
: 693