projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9610a3
)
Check if NULL sock->user_data when closing connection after
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 3 Mar 2004 14:13:36 +0000
(14:13 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 3 Mar 2004 14:13:36 +0000
(14:13 +0000)
calling protocol completion in connection closing (it might
be closed in the completion).
apps/silcd/server.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index bec50d7df2f9bd15969bc6305ac7f2d829dab987..fb4a68dcd1416a1227c2e91ce666b90702e59a2a 100644
(file)
--- a/
apps/silcd/server.c
+++ b/
apps/silcd/server.c
@@
-3412,6
+3412,8
@@
void silc_server_free_sock_user_data(SilcServer server,
sock->protocol->state = SILC_PROTOCOL_STATE_ERROR;
silc_protocol_execute_final(sock->protocol, server->schedule);
sock->protocol = NULL;
+ if (!sock->user_data)
+ return;
}
switch (sock->type) {