projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e197ceb
)
More log
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 23 Sep 2004 09:35:59 +0000
(09:35 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 23 Sep 2004 09:35:59 +0000
(09:35 +0000)
apps/silcd/command.c
patch
|
blob
|
history
diff --git
a/apps/silcd/command.c
b/apps/silcd/command.c
index 975e4d022a6af5d2bd764df635bc1d05bddf41dc..1b88877186c9e4f1bb7e38028535125a8919f89a 100644
(file)
--- a/
apps/silcd/command.c
+++ b/
apps/silcd/command.c
@@
-206,7
+206,12
@@
void silc_server_command_process(SilcServer server,
ctx->payload = silc_command_payload_parse(packet->buffer->data,
packet->buffer->len);
if (!ctx->payload) {
ctx->payload = silc_command_payload_parse(packet->buffer->data,
packet->buffer->len);
if (!ctx->payload) {
- SILC_LOG_ERROR(("Bad command payload, packet dropped"));
+ SILC_LOG_ERROR(("Bad command payload, dropped (%s:%d [%s])",
+ sock->hostname, sock->port,
+ (sock->type == SILC_SOCKET_TYPE_UNKNOWN ? "Unknown" :
+ sock->type == SILC_SOCKET_TYPE_CLIENT ? "Client" :
+ sock->type == SILC_SOCKET_TYPE_SERVER ? "Server" :
+ "Router")));
silc_packet_context_free(packet);
silc_socket_free(ctx->sock);
silc_free(ctx);
silc_packet_context_free(packet);
silc_socket_free(ctx->sock);
silc_free(ctx);