]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Add assert to make sure fd was successfully sent to imap-hibernate
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 24 Mar 2020 09:58:35 +0000 (11:58 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 27 Mar 2020 14:29:33 +0000 (14:29 +0000)
src/imap/imap-client-hibernate.c

index b8c2c32d0f8917b6bac7255931cf1c8aa995114e..210e1b6b4746a51881bbb6be1522826b44c0c050 100644 (file)
@@ -116,6 +116,7 @@ imap_hibernate_process_send_cmd(int fd_socket, const char *path,
                i_error("fd_send(%s) failed: %m", path);
                return -1;
        }
+       i_assert(ret == 1);
        if ((ret = write_full(fd_socket, str_data(cmd)+1, str_len(cmd)-1)) < 0) {
                i_error("write(%s) failed: %m", path);
                return -1;