projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silcclient
/
client.c
diff --git
a/lib/silcclient/client.c
b/lib/silcclient/client.c
index 81cf7e020650031db21904c42c722a7242836e94..4dd828f89bce4d088871d93af1755568c0b59c2b 100644
(file)
--- a/
lib/silcclient/client.c
+++ b/
lib/silcclient/client.c
@@
-603,8
+603,7
@@
SILC_TASK_CALLBACK(silc_client_packet_process)
return;
}
return;
}
- client->ops->say(client, conn, "Connection closed: premature EOF");
- SILC_LOG_DEBUG(("Premature EOF from connection %d", sock->sock));
+ SILC_LOG_DEBUG(("EOF from connection %d", sock->sock));
client->ops->disconnect(client, conn);
silc_client_close_connection(client, sock);
return;
client->ops->disconnect(client, conn);
silc_client_close_connection(client, sock);
return;
@@
-1531,8
+1530,13
@@
void silc_client_notify_by_server(SilcClient client,
silc_idcache_del_by_id(conn->client_cache, SILC_ID_CLIENT,
client_entry->id);
silc_idcache_del_by_id(conn->client_cache, SILC_ID_CLIENT,
client_entry->id);
+ /* Get signoff message */
+ tmp = silc_argument_get_arg_type(args, 2, &tmp_len);
+ if (tmp_len > 128)
+ tmp = NULL;
+
/* Notify application */
/* Notify application */
- client->ops->notify(client, conn, type, client_entry);
+ client->ops->notify(client, conn, type, client_entry
, tmp
);
/* Free data */
if (client_entry->nickname)
/* Free data */
if (client_entry->nickname)