projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb9e1e4
)
memory leak fixes.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 19 Jun 2002 13:03:57 +0000
(13:03 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 19 Jun 2002 13:03:57 +0000
(13:03 +0000)
apps/silcd/server.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index 93e81034a7eb663347607fc84591458234ba15f5..9631e5f01718ba9db3b83740e82c8c6236622c81 100644
(file)
--- a/
apps/silcd/server.c
+++ b/
apps/silcd/server.c
@@
-2543,8
+2543,10
@@
SILC_TASK_CALLBACK(silc_server_close_connection_final)
void silc_server_close_connection(SilcServer server,
SilcSocketConnection sock)
{
- if (!server->sockets[sock->sock])
+ if (!server->sockets[sock->sock] && SILC_IS_DISCONNECTED(sock)) {
+ silc_socket_free(sock);
return;
+ }
SILC_LOG_INFO(("Closing connection %s:%d [%s]", sock->hostname,
sock->port,