call imap4d_bye0() instead of imap4d_bye().
Reason: rfc 2060 requires that the server send a BYE untagged response before the (tagged) OK response. With our implementation it was vice-versa.
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -29,7 +29,6 @@ imap4d_logout (struct imap4d_command *command, char *arg) | ... | @@ -29,7 +29,6 @@ imap4d_logout (struct imap4d_command *command, char *arg) |
29 | return util_finish (command, RESP_BAD, "Wrong state"); | 29 | return util_finish (command, RESP_BAD, "Wrong state"); |
30 | if (util_getword (arg, &sp)) | 30 | if (util_getword (arg, &sp)) |
31 | return util_finish (command, RESP_BAD, "Too many args"); | 31 | return util_finish (command, RESP_BAD, "Too many args"); |
32 | util_finish (command, RESP_OK, "Completed"); | 32 | imap4d_bye0 (OK, command); |
33 | imap4d_bye (OK); | ||
34 | return 0; | 33 | return 0; |
35 | } | 34 | } | ... | ... |
-
Please register or sign in to post a comment