projects
/
dockapps
/
wmnotify.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix application crash when IMAP LOGIN command failed
[dockapps/wmnotify.git]
/
src
/
imap.c
diff --git
a/src/imap.c
b/src/imap.c
index
61f83b8
..
2cae287
100644
(file)
--- a/
src/imap.c
+++ b/
src/imap.c
@@
-312,7
+312,7
@@
int IMAP4_CheckForNewMail(void)
status = IMAP4_SendCommand(3, argv);
if (status != EXIT_SUCCESS) {
new_messages = -1;
status = IMAP4_SendCommand(3, argv);
if (status != EXIT_SUCCESS) {
new_messages = -1;
- goto imap4_
logout
;
+ goto imap4_
connection_terminate
;
}
/* Selecting the mailbox first. */
}
/* Selecting the mailbox first. */
@@
-351,6
+351,7
@@
imap4_logout:
if (status != EXIT_SUCCESS)
new_messages = -1;
if (status != EXIT_SUCCESS)
new_messages = -1;
+imap4_connection_terminate:
status = ConnectionTerminate();
if (status != EXIT_SUCCESS)
new_messages = -1;
status = ConnectionTerminate();
if (status != EXIT_SUCCESS)
new_messages = -1;