]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/serv_smtp.c
SMTP: when we did the login and replied, we mustn't try again to process the...
[citadel.git] / citadel / modules / smtp / serv_smtp.c
index be0ef80a47eaddcd3a18fe5bec07580e4a8c0d2e..6dcf9c2b5a92bf9d09f190108c6d244e77d196f5 100644 (file)
@@ -1007,14 +1007,17 @@ void smtp_command_loop(void)
 
        if (sSMTP->command_state == smtp_user) {
                smtp_get_user(0);
+               return;
        }
 
        else if (sSMTP->command_state == smtp_password) {
                smtp_get_pass(0, 0);
+               return;
        }
 
        else if (sSMTP->command_state == smtp_plain) {
                smtp_try_plain(0, 0);
+               return;
        }
 
        pchs = pch = ChrPtr(sSMTP->Cmd);