Bugzilla – Attachment 832 Details for
Bug 948
high CPU in sshd after tcp_wrappers deny
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a better fix for closed fd in openssl's RAND_query_egd_bytes
openssl-0.9.7e-rand-egd-loop.patch (text/plain), 688 bytes, created by
Darren Tucker
on 2005-02-19 18:41:28 AEDT
(
hide
)
Description:
a better fix for closed fd in openssl's RAND_query_egd_bytes
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-02-19 18:41:28 AEDT
Size:
688 bytes
patch
obsolete
>--- openssl-0.9.7e/crypto/rand/rand_egd.c.orig 2005-02-19 17:43:51.000000000 +1100 >+++ openssl-0.9.7e/crypto/rand/rand_egd.c 2005-02-19 17:42:52.000000000 +1100 >@@ -216,7 +216,9 @@ > while (numbytes != 1) > { > num = read(fd, egdbuf, 1); >- if (num >= 0) >+ if (num == 0) >+ goto err; /* descriptor closed */ >+ else if (num > 0) > numbytes += num; > else > { >@@ -246,7 +248,9 @@ > while (numbytes != egdbuf[0]) > { > num = read(fd, retrievebuf + numbytes, egdbuf[0] - numbytes); >- if (num >= 0) >+ if (num == 0) >+ goto err; /* descriptor closed */ >+ else if (num > 0) > numbytes += num; > else > {
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 948
:
737
|
788
|
822
|
823
|
824
|
825
|
830
|
831
| 832 |
833