projects
/
TransparentIRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added SSL backend for IOMultiplexer
[TransparentIRC.git]
/
src
/
UserClient.c
diff --git
a/src/UserClient.c
b/src/UserClient.c
index 1b075069ccc2fd7f8aa2b2c7c2f98109594e6c22..762b0d600f7a516747524f934beeef7c1a2a7cb8 100644
(file)
--- a/
src/UserClient.c
+++ b/
src/UserClient.c
@@
-56,7
+56,8
@@
void userclient_accepted(struct ServerSocket *server, int sockfd) {
void userclient_close(struct UserClient *client) {
if(client->flags & USERCLIENT_LOGGED_IN) {
void userclient_close(struct UserClient *client) {
if(client->flags & USERCLIENT_LOGGED_IN) {
- usersession_client_close(client->user);
+ if(client->user)
+ usersession_client_close(client->user);
} else {
struct UserLogin *login = client->user;
if(client->flags & USERCLIENT_LOGIN_PROCESSING) {
} else {
struct UserLogin *login = client->user;
if(client->flags & USERCLIENT_LOGIN_PROCESSING) {