Skip to content

Commit

Permalink
net_imap: Fix IMAP client regression.
Browse files Browse the repository at this point in the history
Commit fa6a8ea
introduced a regression by aborting on success;
this fixes that.
  • Loading branch information
InterLinked1 committed Jan 13, 2024
1 parent b645945 commit b4ae544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nets/net_imap/imap_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ int __imap_client_send_wait_response(struct imap_client *client, int fd, int ms,
#endif
if (bbs_write(client->client.wfd, tagbuf, (unsigned int) taglen) < 0) {
goto cleanup;
} else if (bbs_write(client->client.wfd, buf, (unsigned int) len)) {
} else if (bbs_write(client->client.wfd, buf, (unsigned int) len) < 0) {
goto cleanup;
}
imap_debug(7, "=> %s%s", tagbuf, buf);
Expand Down

0 comments on commit b4ae544

Please sign in to comment.