Grabbed that previously noted bad code from rename_user that walked
authorDave West <davew@uncensored.citadel.org>
Tue, 10 Nov 2009 19:06:33 +0000 (19:06 +0000)
committerDave West <davew@uncensored.citadel.org>
Tue, 10 Nov 2009 19:06:33 +0000 (19:06 +0000)
commitbe8d2e8c65b70b7caa227f794c3c849ef2367954
treeedac167636db4a7094e6974919273c5c64adf581
parent06cf6a97dfb504e9132b42dc0fb07d9dcefe8a34
Grabbed that previously noted bad code from rename_user that walked
the context list without locking. Used it to create a function
int CtdlIsUserLoggedIn (char *username)
and exposed it to the API
Oh yes and I fixed it to walk the list safely.
citadel/context.c
citadel/include/ctdl_module.h
citadel/user_ops.c