Created
November 12, 2011 13:07
-
-
Save dinhvh/1360497 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ***** (1) ***** */ | |
@@ -383,9 +383,12 @@ int mailpop3_quit(mailpop3 * f) | |
res = MAILPOP3_ERROR_STREAM; | |
goto close; | |
} | |
- parse_response(f, response); | |
- | |
- res = MAILPOP3_NO_ERROR; | |
+ if (parse_response(f, response) == RESPONSE_OK) { | |
+ res = MAILPOP3_NO_ERROR; | |
+ } | |
+ else { | |
+ res = MAILPOP3_ERROR_DENIED; | |
+ } | |
/* ***** (2) ***** */ | |
close: | |
if (f->pop3_state != POP3_STATE_DISCONNECTED) | |
@@ -1032,6 +1035,8 @@ static int parse_response(mailpop3 * f, char * response) | |
f->pop3_response = f->pop3_response_buffer->str; | |
else | |
f->pop3_response = NULL; | |
+ | |
+ return RESPONSE_ERR; | |
} | |
f->pop3_response = NULL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment