]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Crashfix to "doveadm auth cache flush" when auth cache was disabled
authorTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:44:06 +0000 (21:44 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:44:06 +0000 (21:44 +0200)
src/auth/auth-master-connection.c

index 105ee841b344a4d52132d004659c25e00679f8cc..37ac37f4f208486237aa3393792a2e1575367a40 100644 (file)
@@ -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 {