]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
7 years agolib-http: client: peer: Moved http_client_peer_reset_backoff_timer() function.
Stephan Bosch [Sun, 18 Dec 2016 18:27:05 +0000 (19:27 +0100)] 
lib-http: client: peer: Moved http_client_peer_reset_backoff_timer() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_increase_backoff_timer() function.
Stephan Bosch [Sun, 18 Dec 2016 18:16:31 +0000 (19:16 +0100)] 
lib-http: client: peer: Moved http_client_peer_increase_backoff_timer() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_start_backoff_timer() function.
Stephan Bosch [Sun, 18 Dec 2016 18:15:04 +0000 (19:15 +0100)] 
lib-http: client: peer: Moved http_client_peer_start_backoff_timer() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_connect_backoff() function.
Stephan Bosch [Sun, 18 Dec 2016 18:13:00 +0000 (19:13 +0100)] 
lib-http: client: peer: Moved http_client_peer_connect_backoff() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_get() function.
Stephan Bosch [Sun, 4 Dec 2016 23:37:27 +0000 (00:37 +0100)] 
lib-http: client: peer: Moved http_client_peer_get() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_drop() function.
Stephan Bosch [Sun, 18 Dec 2016 17:50:31 +0000 (18:50 +0100)] 
lib-http: client: peer: Moved http_client_peer_drop() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_close() function.
Stephan Bosch [Sun, 18 Dec 2016 17:46:01 +0000 (18:46 +0100)] 
lib-http: client: peer: Moved http_client_peer_close() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_unref() function.
Stephan Bosch [Sun, 18 Dec 2016 17:44:05 +0000 (18:44 +0100)] 
lib-http: client: peer: Moved http_client_peer_unref() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_ref() function.
Stephan Bosch [Sun, 18 Dec 2016 17:42:50 +0000 (18:42 +0100)] 
lib-http: client: peer: Moved http_client_peer_ref() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_disconnect() function.
Stephan Bosch [Sun, 18 Dec 2016 17:41:37 +0000 (18:41 +0100)] 
lib-http: client: peer: Moved http_client_peer_disconnect() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: peer: Moved http_client_peer_create() function.
Stephan Bosch [Sun, 18 Dec 2016 17:40:19 +0000 (18:40 +0100)] 
lib-http: client: peer: Moved http_client_peer_create() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: shared context: Allow sharing host lookups between clients.
Stephan Bosch [Sat, 3 Dec 2016 23:11:46 +0000 (00:11 +0100)] 
lib-http: client: shared context: Allow sharing host lookups between clients.

7 years agolib-http: client: host: Moved http_client_host_submit_request() function.
Stephan Bosch [Sun, 4 Dec 2016 11:51:02 +0000 (12:51 +0100)] 
lib-http: client: host: Moved http_client_host_submit_request() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: host: Moved http_client_host_check_idle() function.
Stephan Bosch [Sun, 4 Dec 2016 11:40:29 +0000 (12:40 +0100)] 
lib-http: client: host: Moved http_client_host_check_idle() function.

This is a preparation for a subsequent change.

7 years agolib-http: client: Avoid direct access to host object members from queue.
Stephan Bosch [Wed, 30 Nov 2016 01:04:11 +0000 (02:04 +0100)] 
lib-http: client: Avoid direct access to host object members from queue.

7 years agolib-http: client: Moved connection pool handling from peer to separate object.
Stephan Bosch [Tue, 29 Nov 2016 18:29:25 +0000 (19:29 +0100)] 
lib-http: client: Moved connection pool handling from peer to separate object.

7 years agolib-http: client: Moved connection list from client to shared context.
Stephan Bosch [Tue, 29 Nov 2016 17:13:30 +0000 (18:13 +0100)] 
lib-http: client: Moved connection list from client to shared context.

7 years agolib-http: client: Created basic shared context between clients.
Stephan Bosch [Tue, 29 Nov 2016 15:17:59 +0000 (16:17 +0100)] 
lib-http: client: Created basic shared context between clients.

In this basic form it only shares default settings.

7 years agolib-http: client: Cosmetic changes to http-client-private.h.
Stephan Bosch [Sun, 4 Dec 2016 18:35:30 +0000 (19:35 +0100)] 
lib-http: client: Cosmetic changes to http-client-private.h.

7 years agolib-http: client: Simplified initiation of connection setup upon request submission.
Stephan Bosch [Sun, 4 Dec 2016 15:00:49 +0000 (16:00 +0100)] 
lib-http: client: Simplified initiation of connection setup upon request submission.

7 years agolib-http: client: Created separate http_client_queue_get() function.
Stephan Bosch [Sun, 4 Dec 2016 11:03:18 +0000 (12:03 +0100)] 
lib-http: client: Created separate http_client_queue_get() function.

Before, this was combined in http_client_queue_create() which caused a large code block to be indentet.
Separating creation and obtaining the current instance makes the code cleaner.

7 years agolib-http: client: Fixed whitespace in the top comment explaining the structure of...
Stephan Bosch [Tue, 29 Nov 2016 16:22:41 +0000 (17:22 +0100)] 
lib-http: client: Fixed whitespace in the top comment explaining the structure of the HTTP client.

7 years agodriver-cassandra: Free statement pool on update
Aki Tuomi [Thu, 7 Dec 2017 07:48:51 +0000 (09:48 +0200)] 
driver-cassandra: Free statement pool on update

Otherwise the pool memory will leak. This was happening with non-prepared
statements when version was older than 4.

7 years agolib-http: test-http-client - conditionally depend on openssl
Aki Tuomi [Thu, 7 Dec 2017 06:20:02 +0000 (08:20 +0200)] 
lib-http: test-http-client - conditionally depend on openssl

Fixes compiling without openssl, broken by c45da70c

7 years agoauth: passdb-ldap - Fix AUTH_LOG_MSG_PASSWORD_MISMATCH use in logging
Martti Rannanjärvi [Wed, 6 Dec 2017 15:41:14 +0000 (17:41 +0200)] 
auth: passdb-ldap - Fix AUTH_LOG_MSG_PASSWORD_MISMATCH use in logging

7 years agoauth: Fix 'Password mismatch' casing consistency
Aki Tuomi [Tue, 4 Apr 2017 09:40:10 +0000 (12:40 +0300)] 
auth: Fix 'Password mismatch' casing consistency

7 years agoauth: Fix auth_request_is_disabled_master_user
Aki Tuomi [Tue, 28 Nov 2017 09:39:52 +0000 (11:39 +0200)] 
auth: Fix auth_request_is_disabled_master_user

I assumed that lack of passdb means master authentication,
but e.g. gssapi does not require a passdb. Instead, check
that if requested_login_uset is non-null then check passdb is
non-null too.

Fixes auth: Panic: file auth-request.c: line 716 (auth_request_is_disabled_master_user): assertion failed: (request->requested_login_user != NULL)

7 years agodoveadm-pw: Use CRYPT instead of CRAM-MD5 by default
Aki Tuomi [Mon, 4 Dec 2017 15:55:15 +0000 (17:55 +0200)] 
doveadm-pw: Use CRYPT instead of CRAM-MD5 by default

This is when generating new passwords.

7 years agoauth: Use bcrypt as default scheme for CRYPT scheme
Aki Tuomi [Mon, 4 Dec 2017 16:39:24 +0000 (18:39 +0200)] 
auth: Use bcrypt as default scheme for CRYPT scheme

Only changes the type of password which is generated by default,
password verification is not changed.

7 years agoauth: Rename CRYPT scheme to DES-CRYPT
Aki Tuomi [Mon, 4 Dec 2017 16:38:36 +0000 (18:38 +0200)] 
auth: Rename CRYPT scheme to DES-CRYPT

7 years agolib-storage: Log an error when mailbox list index is rebuilt due to header fsck flag
Timo Sirainen [Wed, 29 Nov 2017 13:20:29 +0000 (15:20 +0200)] 
lib-storage: Log an error when mailbox list index is rebuilt due to header fsck flag

7 years agolib-storage: Rebuild list index when doing doveadm force-resync
Timo Sirainen [Wed, 29 Nov 2017 13:14:02 +0000 (15:14 +0200)] 
lib-storage: Rebuild list index when doing doveadm force-resync

7 years agoLAYOUT=index: Rebuild list index if INBOX is missing on inbox=yes namespace
Timo Sirainen [Wed, 29 Nov 2017 12:51:02 +0000 (14:51 +0200)] 
LAYOUT=index: Rebuild list index if INBOX is missing on inbox=yes namespace

This avoids having to manually rebuild the list index afterwards if it
becomes lost.

7 years agolib-storage: Rename mail_storage.list_index_corrupted() to list_index_rebuild()
Timo Sirainen [Wed, 29 Nov 2017 12:36:25 +0000 (14:36 +0200)] 
lib-storage: Rename mail_storage.list_index_corrupted() to list_index_rebuild()

Also add a new parameter to it to specify the rebuild reason.

7 years agolib-storage: Remove obsolete comment
Timo Sirainen [Wed, 29 Nov 2017 12:38:38 +0000 (14:38 +0200)] 
lib-storage: Remove obsolete comment

7 years agoauth: passdb-lua - Fix mistake in nopassword handling
Aki Tuomi [Thu, 30 Nov 2017 10:52:23 +0000 (12:52 +0200)] 
auth: passdb-lua - Fix mistake in nopassword handling

If nopassword is given, check that password is not set.
Previous code did the opposite.

Fixes Info: lua(): nopassword given and password is not empty

7 years agoauth: Set cache key for lua auth database
Aki Tuomi [Mon, 4 Dec 2017 17:05:55 +0000 (19:05 +0200)] 
auth: Set cache key for lua auth database

7 years agolib: murmurhash3 - Fix Aki's email address
Martti Rannanjärvi [Fri, 1 Dec 2017 18:51:44 +0000 (20:51 +0200)] 
lib: murmurhash3 - Fix Aki's email address

7 years agolib: Add fall through comments to murmurhash3.c to fix gcc-7 warnings
Martti Rannanjärvi [Fri, 1 Dec 2017 16:15:18 +0000 (18:15 +0200)] 
lib: Add fall through comments to murmurhash3.c to fix gcc-7 warnings

7 years agolib: murmurhash3 - Fix 128 bit hash on 32 bit systems
Aki Tuomi [Fri, 1 Dec 2017 09:53:50 +0000 (11:53 +0200)] 
lib: murmurhash3 - Fix 128 bit hash on 32 bit systems

7 years agodoveadm-server: Switch to TCP connection's ioloop while sending logs to remote
Timo Sirainen [Mon, 27 Nov 2017 16:26:00 +0000 (18:26 +0200)] 
doveadm-server: Switch to TCP connection's ioloop while sending logs to remote

Fixes:
Warning: I/O leak: 0x558d7c074ed0 (ostream-file.c:349, fd 16)
Panic: file ioloop.c: line 127 (io_remove_full): assertion failed: (io->callback != NULL)

7 years agolib: randgen - Fallback to /dev/urandom in case getrandom does not work
Aki Tuomi [Wed, 29 Nov 2017 14:29:17 +0000 (16:29 +0200)] 
lib: randgen - Fallback to /dev/urandom in case getrandom does not work

In some operating systems getrandom is defined, but not implemented,
if this happens, fallback into using /dev/urandom.

7 years agolib: Add bloom filter support
Aki Tuomi [Mon, 27 Nov 2017 11:46:40 +0000 (13:46 +0200)] 
lib: Add bloom filter support

7 years agolib: Add murmurhash3 support
Aki Tuomi [Mon, 27 Nov 2017 11:46:17 +0000 (13:46 +0200)] 
lib: Add murmurhash3 support

Needed for bloom filters

7 years agolib: bits - add circular rotation functions
Aki Tuomi [Mon, 27 Nov 2017 11:45:56 +0000 (13:45 +0200)] 
lib: bits - add circular rotation functions

7 years agolib: Call prctl(PR_SET_DUMPABLE) only when PR_SET_DUMPABLE env variable is set
Sergey Kitov [Tue, 21 Nov 2017 11:27:18 +0000 (13:27 +0200)] 
lib: Call prctl(PR_SET_DUMPABLE) only when PR_SET_DUMPABLE env variable is set

7 years agolib: Add logging of prctl(PR_SET_DUMPABLE) failure.
Sergey Kitov [Wed, 22 Nov 2017 09:34:47 +0000 (11:34 +0200)] 
lib: Add logging of prctl(PR_SET_DUMPABLE) failure.

7 years agoauth: test-lua - fix memory leaks
Aki Tuomi [Wed, 29 Nov 2017 07:00:08 +0000 (09:00 +0200)] 
auth: test-lua - fix memory leaks

7 years agolib-smtp: client: Fixed sending payload with unknown size using the CHUNKING capability.
Stephan Bosch [Tue, 28 Nov 2017 00:04:53 +0000 (01:04 +0100)] 
lib-smtp: client: Fixed sending payload with unknown size using the CHUNKING capability.

7 years agolib-smtp: client: command: Implemented callback that is called when command is fully...
Stephan Bosch [Tue, 28 Nov 2017 00:03:48 +0000 (01:03 +0100)] 
lib-smtp: client: command: Implemented callback that is called when command is fully sent.

7 years agolib-smtp: client: transaction: Fix adding a recipient while the transaction is alread...
Stephan Bosch [Mon, 27 Nov 2017 20:03:52 +0000 (21:03 +0100)] 
lib-smtp: client: transaction: Fix adding a recipient while the transaction is already failed.

This did not always trigger an immediate callback.

7 years agoauth: test-lua - zero out auth settings in test
Aki Tuomi [Tue, 28 Nov 2017 19:15:17 +0000 (21:15 +0200)] 
auth: test-lua - zero out auth settings in test

Otherwise valgrind complains

7 years agodirector: Fix logging disconnection error reasons
Timo Sirainen [Tue, 28 Nov 2017 17:01:19 +0000 (19:01 +0200)] 
director: Fix logging disconnection error reasons

The previous commit set errno=0, which weren't logged. If error string is
provided, it doesn't matter what the errno is set (as long as it's not 0),
so we'll just use EINVAL.

7 years agolib: mempool-alloconly - Make sure calloc() size isn't above SSIZE_T_MAX
Timo Sirainen [Tue, 28 Nov 2017 11:45:42 +0000 (13:45 +0200)] 
lib: mempool-alloconly - Make sure calloc() size isn't above SSIZE_T_MAX

This avoids valgrind warnings when running unit tests:

Argument 'nmemb' of function calloc has a fishy (possibly negative) value: -9223372036854775808

7 years agoauth: userdb-lua - Fix typo in logging
Aki Tuomi [Tue, 28 Nov 2017 14:51:46 +0000 (16:51 +0200)] 
auth: userdb-lua - Fix typo in logging

7 years agoauth: userdb-lua - Log error if lookup fails
Aki Tuomi [Tue, 28 Nov 2017 14:51:06 +0000 (16:51 +0200)] 
auth: userdb-lua - Log error if lookup fails

Previously the error would just be discarded.

7 years agoauth: db-lua - Fix password scheme handling
Aki Tuomi [Tue, 28 Nov 2017 14:50:13 +0000 (16:50 +0200)] 
auth: db-lua - Fix password scheme handling

It was left as NULL and had misleading name in some
of the handler functions causing assert-crash.

7 years agoauth: db-lua - fix auth request registration
Aki Tuomi [Tue, 28 Nov 2017 14:48:19 +0000 (16:48 +0200)] 
auth: db-lua - fix auth request registration

It was registered in wrong manner so one could not
easily extend it with passdb and userdb subtables.

The change itself was to change the object to a
table, and register the actual pointer as light userdata
under index 'item', and the passdb and userdb tables
similarly with 'item' in each holding the pointer
to request.

7 years agoauth: db-lua - Do not assume params is always present for passdb/userdb field lookup
Aki Tuomi [Tue, 28 Nov 2017 11:44:06 +0000 (13:44 +0200)] 
auth: db-lua - Do not assume params is always present for passdb/userdb field lookup

7 years agolib: Fix mempool unit tests to pass with 32bit OSes
Timo Sirainen [Tue, 28 Nov 2017 14:07:12 +0000 (16:07 +0200)] 
lib: Fix mempool unit tests to pass with 32bit OSes

malloc(SSIZE_T_MAX) actually succeeds there, so we can't test it.

7 years agolib: rename bswap_*() to i_bswap()
Josef 'Jeff' Sipek [Fri, 17 Nov 2017 16:37:45 +0000 (11:37 -0500)] 
lib: rename bswap_*() to i_bswap()

7 years agodirector: Log connection stats for all types of disconnections
Timo Sirainen [Tue, 28 Nov 2017 13:06:27 +0000 (15:06 +0200)] 
director: Log connection stats for all types of disconnections

7 years agodirector: Log whether connection is synced when it's being disconnected.
Timo Sirainen [Tue, 28 Nov 2017 12:57:27 +0000 (14:57 +0200)] 
director: Log whether connection is synced when it's being disconnected.

7 years agodirector: Fix crash when handling expired USER timestamps.
Timo Sirainen [Tue, 28 Nov 2017 11:10:35 +0000 (13:10 +0200)] 
director: Fix crash when handling expired USER timestamps.

The fix in 154f91726624265fce15097eb4bbbf6e55f8c477 wasn't complete.

7 years agopassword-scheme-sodium: ARGON2I - print errno on failure
Aki Tuomi [Fri, 24 Nov 2017 11:22:19 +0000 (13:22 +0200)] 
password-scheme-sodium: ARGON2I - print errno on failure

7 years agopassword-scheme-sodium: Support ARGON2ID when available
Aki Tuomi [Fri, 24 Nov 2017 11:18:16 +0000 (13:18 +0200)] 
password-scheme-sodium: Support ARGON2ID when available

7 years agopassword-scheme-sodium: rename ARGON2 to ARGON2I
Aki Tuomi [Fri, 24 Nov 2017 10:50:00 +0000 (12:50 +0200)] 
password-scheme-sodium: rename ARGON2 to ARGON2I

7 years agopassword-scheme-sodium: Call sodium_init to improve performance
Aki Tuomi [Fri, 24 Nov 2017 10:47:58 +0000 (12:47 +0200)] 
password-scheme-sodium: Call sodium_init to improve performance

7 years agoconfigure: --with-sodium doesn't add support for scrypt (for now, at least)
Frank Denis [Sat, 28 Oct 2017 18:58:58 +0000 (20:58 +0200)] 
configure: --with-sodium doesn't add support for scrypt (for now, at least)

7 years agodoveadm-server: Fix potential dsync-server panic at deinit
Timo Sirainen [Mon, 27 Nov 2017 16:34:49 +0000 (18:34 +0200)] 
doveadm-server: Fix potential dsync-server panic at deinit

If the ostream is still used (e.g. for logging) after dsync is finished, it
crashed with:

Panic: file ostream.c: line 276 (o_stream_sendv_int): assertion failed: (!_stream->finished)

7 years agopop3-login: Properly recognize an empty SASL initial response.
Stephan Bosch [Sat, 25 Nov 2017 14:57:16 +0000 (15:57 +0100)] 
pop3-login: Properly recognize an empty SASL initial response.

Pass only the empty string to the auth service and not "=".

7 years agoimap-login: Properly recognize an empty SASL initial response.
Stephan Bosch [Sat, 25 Nov 2017 14:55:41 +0000 (15:55 +0100)] 
imap-login: Properly recognize an empty SASL initial response.

Pass only the empty string to the auth service and not "=".

7 years agoauth: Properly recognize an empty initial SASL response.
Stephan Bosch [Sat, 25 Nov 2017 14:28:32 +0000 (15:28 +0100)] 
auth: Properly recognize an empty initial SASL response.

It was erroneously handled as an absent initial response.
Restructured the code for clarity and changed the comments: '=' should not be passed to SASL layer at all.

7 years agolib: strfuncs: Fixed value of uchar_empty_ptr not to be NULL.
Stephan Bosch [Sat, 25 Nov 2017 17:13:04 +0000 (18:13 +0100)] 
lib: strfuncs: Fixed value of uchar_empty_ptr not to be NULL.

7 years agolmtp: proxy: Fix connection settings comparison in lmtp_proxy_get_connection() when...
Stephan Bosch [Mon, 27 Nov 2017 20:11:30 +0000 (21:11 +0100)] 
lmtp: proxy: Fix connection settings comparison in lmtp_proxy_get_connection() when hostip field is set.

The IP in the hostip field overrides the host setting, which broke the comparison.

7 years agolib: mempool-alloconly - Cleanly fail allocations just below SSIZE_T_MAX
Timo Sirainen [Mon, 27 Nov 2017 13:17:52 +0000 (15:17 +0200)] 
lib: mempool-alloconly - Cleanly fail allocations just below SSIZE_T_MAX

Previously it would have assert-crashed in nearest_power().

7 years agolib: Use test_expect_fatal_string() for all fatal unit tests
Timo Sirainen [Mon, 27 Nov 2017 13:14:36 +0000 (15:14 +0200)] 
lib: Use test_expect_fatal_string() for all fatal unit tests

7 years agolib: Fix mempool-alloconly & mempool-allocfree unit tests
Timo Sirainen [Mon, 27 Nov 2017 13:12:45 +0000 (15:12 +0200)] 
lib: Fix mempool-alloconly & mempool-allocfree unit tests

The "physically impossible size" test was supposed to test calloc()==NULL
failure, but in reality it was triggering asserts before that.

7 years agolib: mempool-allocfree - If calloc() fails, include "Out of memory" in the log line
Timo Sirainen [Mon, 27 Nov 2017 13:11:40 +0000 (15:11 +0200)] 
lib: mempool-allocfree - If calloc() fails, include "Out of memory" in the log line

7 years agolib: Fix logging panic message if data stack canary corruption is detected
Timo Sirainen [Mon, 27 Nov 2017 12:48:25 +0000 (14:48 +0200)] 
lib: Fix logging panic message if data stack canary corruption is detected

The previous code just recursed into the same canary corruption check and
didn't end up logging anything.

7 years agolib: Make sure panics/fatals don't recurse into loops
Timo Sirainen [Mon, 27 Nov 2017 12:42:36 +0000 (14:42 +0200)] 
lib: Make sure panics/fatals don't recurse into loops

7 years agolib-test: Add test_expect_fatal_string()
Timo Sirainen [Mon, 27 Nov 2017 12:24:41 +0000 (14:24 +0200)] 
lib-test: Add test_expect_fatal_string()

7 years agolib-test: Cleanup - Move expected_error_str check to its own function
Timo Sirainen [Mon, 27 Nov 2017 12:23:39 +0000 (14:23 +0200)] 
lib-test: Cleanup - Move expected_error_str check to its own function

7 years agolib-dcrypt: test-crypto and test-stream need lib-ssl-iostream.a fully
Aki Tuomi [Tue, 21 Nov 2017 20:13:17 +0000 (22:13 +0200)] 
lib-dcrypt: test-crypto and test-stream need lib-ssl-iostream.a fully

Otherwise the .so file cannot be loaded due to missing symbols

7 years agologin-common: Do not link lib-ssl-iostream.la twice
Aki Tuomi [Tue, 21 Nov 2017 20:12:56 +0000 (22:12 +0200)] 
login-common: Do not link lib-ssl-iostream.la twice

It's already in libdovecot.la

7 years agoconfigure: Detect --whole-archive in linker
Aki Tuomi [Fri, 24 Nov 2017 06:51:14 +0000 (08:51 +0200)] 
configure: Detect --whole-archive in linker

7 years agom4: Use CC, not CXX in ld_relro
Aki Tuomi [Fri, 24 Nov 2017 07:00:24 +0000 (09:00 +0200)] 
m4: Use CC, not CXX in ld_relro

7 years agoreplicator: Keep user referenced while dsync is running
Timo Sirainen [Mon, 27 Nov 2017 15:42:14 +0000 (17:42 +0200)] 
replicator: Keep user referenced while dsync is running

Fixes a crash when user is removed with "doveadm replicator remove"
while dsync is still running.

7 years agoreplicator: Add refcounting to user
Timo Sirainen [Mon, 27 Nov 2017 15:42:06 +0000 (17:42 +0200)] 
replicator: Add refcounting to user

7 years agolmtp: proxy: Fixed use of hostip field after changing the implementation to use lib...
Stephan Bosch [Mon, 27 Nov 2017 00:38:09 +0000 (01:38 +0100)] 
lmtp: proxy: Fixed use of hostip field after changing the implementation to use lib-smtp/client broke it.

Proxy was erroneously doing DNS queries while hostip field was returned from passdb.

7 years agolmtp: proxy: Fixed proxying reply from backend server.
Stephan Bosch [Mon, 27 Nov 2017 10:45:05 +0000 (11:45 +0100)] 
lmtp: proxy: Fixed proxying reply from backend server.

It contained an additional CRLF, which caused problems.

7 years agolib-smtp: Implemented function to write an SMTP reply as a single line.
Stephan Bosch [Mon, 27 Nov 2017 10:44:23 +0000 (11:44 +0100)] 
lib-smtp: Implemented function to write an SMTP reply as a single line.

Needed for proxying in current LMTP code.

7 years agoconfigure: Fix Lua conditionals
Aki Tuomi [Mon, 27 Nov 2017 12:57:09 +0000 (14:57 +0200)] 
configure: Fix Lua conditionals

7 years agoconfigure: Drop LuaJIT support
Aki Tuomi [Mon, 27 Nov 2017 12:56:07 +0000 (14:56 +0200)] 
configure: Drop LuaJIT support

Does not work with our custom allocator

7 years agolib: mempool-allocfree - include overhead in size check
Aki Tuomi [Mon, 27 Nov 2017 10:32:54 +0000 (12:32 +0200)] 
lib: mempool-allocfree - include overhead in size check

Found by valgrind

7 years agodirector: Fix logging of uninitialized PONG buffer size
Timo Sirainen [Mon, 27 Nov 2017 09:58:39 +0000 (11:58 +0200)] 
director: Fix logging of uninitialized PONG buffer size

PONG always has 0 or 2 parameters. The easiest fix here is to just not even
try to support 1 parameter.

7 years agolib-smtp: client: Fixed cleanup of untriggered transaction timeout.
Stephan Bosch [Sun, 26 Nov 2017 23:54:56 +0000 (00:54 +0100)] 
lib-smtp: client: Fixed cleanup of untriggered transaction timeout.

7 years agodirector: Fix delayed request count in ps title after request timeouts
Timo Sirainen [Sun, 26 Nov 2017 21:00:30 +0000 (23:00 +0200)] 
director: Fix delayed request count in ps title after request timeouts

The timeouts weren't shrinking the delayed request count. This didn't cause
any other problems.

7 years agolib-program-client: Ignore ostream error handling
Timo Sirainen [Fri, 24 Nov 2017 23:59:47 +0000 (01:59 +0200)] 
lib-program-client: Ignore ostream error handling

7 years agolib-smtp: Implemented test suite for client errors.
Stephan Bosch [Sun, 29 Oct 2017 17:36:25 +0000 (18:36 +0100)] 
lib-smtp: Implemented test suite for client errors.