Full_Name: Matthias Loepfe
Version: mod_ssl-2.3.9
OS: Solaris 2.6
Submission from: (NULL) (193.192.235.3)


In the builtin passphrase getter a magic constant STDERR_FILENO_STORE
is used to as the fd to store the stderr fd during passphrase getting.

The problem is, that it is possible that this fd (10) is already in use.
What then happens is dependend on the use of the fd 10. In my case 
where we have a logrotater configured for the 3 logs, the fd 10 is
used for the certificate beeing processed. This leads to a situation
where after reading the passphrase a read(10, ..) blocks the process.

I would propose NOT to use dup2() in this situation but to use the
normal dup() which uses the first FREE file descriptor, store it and
use it instead of the magic constant.

regards Matthias

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to