]> code.citadel.org Git - citadel.git/commitdiff
* Clear out all masqueraded wholist fields when logging out, in case another
authorArt Cancro <ajc@citadel.org>
Sun, 3 Aug 2003 17:51:52 +0000 (17:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 3 Aug 2003 17:51:52 +0000 (17:51 +0000)
  user logs in without reconnecting.

citadel/ChangeLog
citadel/user_ops.c

index 2bbe7eada22cd6e727a9b3974e305daeebf35899..7a4151f78dcd738cd89cabd5eb40f5015d38b899 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 608.16  2003/08/03 17:51:52  ajc
+ * Clear out all masqueraded wholist fields when logging out, in case another
+   user logs in without reconnecting.
+
  Revision 608.15  2003/07/30 20:36:18  ajc
  * Allow users to authenticate with either their display name or any valid
    e-mail address which belongs to them.  Applies to all protocols.
@@ -4931,3 +4935,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 5934a4ab6b8e28211fced578c50de248d7994066..69f45a64dfd53fddecfda227608e22b17c7d4404 100644 (file)
@@ -496,6 +496,16 @@ void logged_in_response(void)
  */
 void logout(struct CitContext *who)
 {
+       /*
+        * Clear out some session data.  Most likely, the CitContext for this
+        * session is about to get nuked when the session disconnects, but
+        * since it's possible to log in again without reconnecting, we cannot
+        * make that assumption.
+        */
+       strcpy(who->fake_username, "");
+       strcpy(who->fake_postname, "");
+       strcpy(who->fake_hostname, "");
+       strcpy(who->fake_roomname, "");
        who->logged_in = 0;
 
        /*