SMTP: when we did the login and replied, we mustn't try again to process the...
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 8 Nov 2013 07:38:31 +0000 (08:38 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 8 Nov 2013 07:39:32 +0000 (08:39 +0100)
citadel/modules/smtp/serv_smtp.c

index 191a3b57cbedcdfa6c3a0daf34ab1b4c9bde7794..6dcf9c2b5a92bf9d09f190108c6d244e77d196f5 100644 (file)
@@ -1007,10 +1007,12 @@ 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) {