* remove more serv_readln etc...
[citadel.git] / webcit / auth.c
index 56228f7b7fc41033aa698d6be51307f94d4a42b9..5d24144f1fbf30ba9b40ce9dad60f2d3fc45aab4 100644 (file)
@@ -740,16 +740,20 @@ void validate(void)
  */
 void display_reg(int during_login)
 {
+       StrBuf *Buf;
        message_summary *VCMsg;
        wc_mime_attachment *VCAtt;
        long vcard_msgnum;
 
-       if (goto_config_room() != 0) {
+       Buf = NewStrBuf();
+       if (goto_config_room(Buf) != 0) {
                if (during_login) do_welcome();
                else display_main_menu();
+               FreeStrBuf(&Buf);
                return;
        }
 
+       FreeStrBuf(&Buf);
        vcard_msgnum = locate_user_vcard_in_this_room(&VCMsg, &VCAtt);
        if (vcard_msgnum < 0L) {
                if (during_login) do_welcome();