From c1f26eb1efdba35f98745a4e67efd789d23a0341 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 24 Mar 2020 11:58:35 +0200 Subject: [PATCH] imap: Add assert to make sure fd was successfully sent to imap-hibernate --- src/imap/imap-client-hibernate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imap/imap-client-hibernate.c b/src/imap/imap-client-hibernate.c index b8c2c32d0f..210e1b6b47 100644 --- a/src/imap/imap-client-hibernate.c +++ b/src/imap/imap-client-hibernate.c @@ -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; -- 2.47.3