projects
/
dockapps
/
wmnotify.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b08be
)
Fix application crash when IMAP LOGIN command failed
author
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 22 Oct 2013 17:56:37 +0000
(13:56 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 4 Nov 2013 03:34:45 +0000
(22:34 -0500)
Original error was:
wmnotify: Connection reset by peer
Error in file "network.c" at line #249
src/imap.c
patch
|
blob
|
history
diff --git
a/src/imap.c
b/src/imap.c
index
da11e47
..
4f3f288
100644
(file)
--- a/
src/imap.c
+++ b/
src/imap.c
@@
-285,7
+285,7
@@
IMAP4_CheckForNewMail( void )
status = IMAP4_SendCommand( 1, argv );
if( status != EXIT_SUCCESS ) {
new_messages = -1;
- goto imap4_
logout
;
+ goto imap4_
connection_terminate
;
}
if( unseen_string_found == true ) {
@@
-299,6
+299,7
@@
IMAP4_CheckForNewMail( void )
new_messages = -1;
}
+imap4_connection_terminate:
status = ConnectionTerminate();
if( status != EXIT_SUCCESS ) {
new_messages = -1;