]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Fixed previous broken change for handling USER-WEAK commands.
authorTimo Sirainen <tss@iki.fi>
Mon, 22 Oct 2012 12:17:39 +0000 (15:17 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 22 Oct 2012 12:17:39 +0000 (15:17 +0300)
src/director/director-connection.c

index a7b82069c48b9e756e75609aaab33419a855696c..45213551f5ebf0095c34126189fbce20f26d4e6d 100644 (file)
@@ -725,7 +725,9 @@ director_cmd_user_weak(struct director_connection *conn,
        bool weak = TRUE;
        int ret;
 
-       if ((ret = director_cmd_is_seen(conn, &args, &dir_host)) != 0)
+       /* note that unlike other commands we don't want to just ignore
+          duplicate commands */
+       if ((ret = director_cmd_is_seen(conn, &args, &dir_host)) < 0)
                return ret > 0;
 
        if (str_array_length(args) != 2 ||