From: Timo Sirainen Date: Sun, 3 Nov 2013 19:44:06 +0000 (+0200) Subject: auth: Crashfix to "doveadm auth cache flush" when auth cache was disabled X-Git-Tag: 2.2.7~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56ffe7c9356544aa228ef6760f9fa08ec2c8c9c1;p=thirdparty%2Fdovecot%2Fcore.git auth: Crashfix to "doveadm auth cache flush" when auth cache was disabled --- diff --git a/src/auth/auth-master-connection.c b/src/auth/auth-master-connection.c index 105ee841b3..37ac37f4f2 100644 --- a/src/auth/auth-master-connection.c +++ b/src/auth/auth-master-connection.c @@ -150,7 +150,7 @@ master_input_cache_flush(struct auth_master_connection *conn, const char *args) if (passdb_cache == NULL) { /* cache disabled */ count = 0; - } if (list[1] == NULL) { + } else if (list[1] == NULL) { /* flush the whole cache */ count = auth_cache_clear(passdb_cache); } else {