]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imap, pop3: Don't access login_set.*_socket_path after they're freed from data stack
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 2 Nov 2017 21:01:20 +0000 (23:01 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 2 Nov 2017 21:01:20 +0000 (23:01 +0200)
commit7f4bcbb9f2d97745a12d301b9ee276200ac58605
tree2d216bfd65382b802be14d56abfecab806bfd069
parent63e9db4f938bec812ec1b2b447c7de45183a4f43
imap, pop3: Don't access login_set.*_socket_path after they're freed from data stack

Call master_login_init() before master_service_init_finish(), which frees
all the data stack done in initialization.

This didn't normally cause any visible problems, because data stack wasn't
currently being used in a way that the strings were invalidated. However,
it was causing failures if --enable-devel-checks was used.
src/imap/main.c
src/pop3/main.c