dovecot-2.2: replicator: Fixed crash caused by "doveadm replicat...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 15 21:23:59 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/be480cfcd7bf
changeset: 17220:be480cfcd7bf
user: Timo Sirainen <tss at iki.fi>
date: Tue Apr 15 23:23:37 2014 +0200
description:
replicator: Fixed crash caused by "doveadm replicator dsync-status" in some situations.
diffstat:
src/replication/replicator/doveadm-connection.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r f0b8cf119b7f -r be480cfcd7bf src/replication/replicator/doveadm-connection.c
--- a/src/replication/replicator/doveadm-connection.c Tue Apr 15 23:02:11 2014 +0200
+++ b/src/replication/replicator/doveadm-connection.c Tue Apr 15 23:23:37 2014 +0200
@@ -114,10 +114,13 @@
string_t *str = t_str_new(256);
const ARRAY_TYPE(dsync_client) *clients;
struct dsync_client *const *clientp;
+ const char *username;
clients = replicator_brain_get_dsync_clients(client->brain);
array_foreach(clients, clientp) {
- str_append_tabescaped(str, dsync_client_get_username(*clientp));
+ username = dsync_client_get_username(*clientp);
+ if (username != NULL)
+ str_append_tabescaped(str, username);
str_append_c(str, '\t');
switch (dsync_client_get_type(*clientp)) {
case DSYNC_TYPE_FULL:
More information about the dovecot-cvs
mailing list