Commit 5558a712 5558a712b07dade6f471680921b714eb55aec607 by Sergey Poznyakoff

(mbox_append_message0): Preserve return status from mu_stream_write, if it is not 0.

1 parent 9a634b93
...@@ -1721,10 +1721,10 @@ mbox_append_message0 (mu_mailbox_t mailbox, mu_message_t msg, mu_off_t *psize, ...@@ -1721,10 +1721,10 @@ mbox_append_message0 (mu_mailbox_t mailbox, mu_message_t msg, mu_off_t *psize,
1721 *psize += n; 1721 *psize += n;
1722 } 1722 }
1723 while (nread > 0); 1723 while (nread > 0);
1724 n = 0;
1725 status = mu_stream_write (mailbox->stream, &nl, 1, *psize, &n);
1726 if (status) 1724 if (status)
1727 break; 1725 break;
1726 status = mu_stream_write (mailbox->stream, &nl, 1, *psize, &n);
1727 if (status == 0)
1728 *psize += n; 1728 *psize += n;
1729 } 1729 }
1730 1730
......