Commit 37e7e4df 37e7e4df6fdf63729c15fb5f7ee940d587fce73f by Sergey Poznyakoff

(_pop_user): Do not close the stream on authentication failures

1 parent cbb803c6
...@@ -541,7 +541,7 @@ _pop_user (authority_t auth) ...@@ -541,7 +541,7 @@ _pop_user (authority_t auth)
541 mailbox_get_observable (mbox, &observable); 541 mailbox_get_observable (mbox, &observable);
542 CLEAR_STATE (mpd); 542 CLEAR_STATE (mpd);
543 observable_notify (observable, MU_EVT_AUTHORITY_FAILED); 543 observable_notify (observable, MU_EVT_AUTHORITY_FAILED);
544 CHECK_ERROR_CLOSE (mbox, mpd, EACCES); 544 return MU_ERR_AUTH_FAILURE;
545 } 545 }
546 mpd->state = POP_AUTH_DONE; 546 mpd->state = POP_AUTH_DONE;
547 break; /* We're outta here. */ 547 break; /* We're outta here. */
......