[Pkg-openssl-devel] Bug#334180: dovecot-imapd does not load shared libraries or ssl certs

Kurt Roeckx kurt at roeckx.be
Mon Oct 31 23:33:46 UTC 2005


Hi,

I've attached a patch that seems to be fixing it.  However, I
have no idea if this is the proper way to fix this.  Someone care
to comment on it?

When the library is initialised, it loads the compression
methods.  It fails, yet sets the method to use
zlib_stateful_method.  The stateful functions call the zlib
functions thru some stubs.  The stub would return Z_MEM_ERROR in
case an the functions didn't get loaded.  So this alone shouldn't
really be a problem.

The problem is however that DSO_load() did a call to
ERR_PUT_error(), which got never cleared, and then much later, in
an unrelated function, in this case in
SSL_CTX_use_certificate_chain_file(), it calls
ERR_peek_last_error(), and sees there was some error, so that
function fails.

An other solution would be to link to zlib instead, so we always
have zlib support.


Kurt





More information about the Pkg-openssl-devel mailing list