Close connection cleanly when login/pw incorrect, following RFC recommendation.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 18 Aug 2004 20:16:46 +0000 (20:16 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 18 Aug 2004 20:16:46 +0000 (20:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7937 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 8167374957a1885c87c95f1de592f44118910e74..511161bf46572ea0d467551a414b9332447b7e6d 100755 (executable)
@@ -721,6 +721,8 @@ function sqimap_login ($username, $password, $imap_server_address, $imap_port, $
                 set_up_language($squirrelmail_language, true);
                 include_once(SM_PATH . 'functions/display_messages.php' );
                 sqsession_destroy();
+                /* terminate the session nicely */
+                sqimap_logout($imap_stream);
                 logout_error( _("Unknown user or password incorrect.") );
                 exit;
             }
@@ -988,4 +990,4 @@ function map_yp_alias($username) {
    return chop(substr($yp, strlen($username)+1));
 }
 
-?>
\ No newline at end of file
+?>