Fixed a problem with NNTP authentication failure handling (need to
[claws.git] / src / news.c
index 60f4a54e864f7dbba4de8f850ddcc6f84152c44c..c76781e2783c7bcc01e0b96b875751372c73403e 100644 (file)
@@ -137,8 +137,11 @@ static Session *news_session_new_for_folder(Folder *folder)
                userid = ac->userid;
                if (ac->passwd && ac->passwd[0])
                        passwd = g_strdup(ac->passwd);
-               else
+               else {
                        passwd = news_query_password(ac->nntp_server, userid);
+                       if (!passwd)
+                               userid = NULL;
+               }
        } else {
                userid = passwd = NULL;
        }