]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Don't crash if getenv() is called after process_title_deinit() with Linux/OSX...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 19 Jan 2016 18:45:27 +0000 (20:45 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 19 Jan 2016 18:45:27 +0000 (20:45 +0200)
commit29ca4c8015b4936378d49937f97049f33d3aaaf9
tree366da07a0d3b5c3abe7f0f6a2c37d88320b45d92
parent0df899feada1f406122d7658894c77eeb10225a3
lib: Don't crash if getenv() is called after process_title_deinit() with Linux/OSX PROCTITLE_HACK

Right now the only known issue is GNUTLS's lib_deinit():

e = getenv("GNUTLS_NO_EXPLICIT_INIT");

But we likely never want that to be set. Alternative ways to solve this are
more annoying than our clearing the environment. Libraries probably shouldn't
rely on it much anyway, because some parts of Dovecot clear the whole
environment while running.
src/lib/process-title.c