projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a6aee1
)
updates
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 14 Mar 2002 08:21:23 +0000
(08:21 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 14 Mar 2002 08:21:23 +0000
(08:21 +0000)
apps/silcd/packet_send.c
patch
|
blob
|
history
diff --git
a/apps/silcd/packet_send.c
b/apps/silcd/packet_send.c
index a5366eab918d410f404ad3b595fa7224f9e9d390..7ead93203810eb2a313b86b1e0df631b6e7735a2 100644
(file)
--- a/
apps/silcd/packet_send.c
+++ b/
apps/silcd/packet_send.c
@@
-649,7
+649,7
@@
void silc_server_packet_send_to_channel(SilcServer server,
sock = (SilcSocketConnection)client->connection;
idata = (SilcIDListData)client;
sock = (SilcSocketConnection)client->connection;
idata = (SilcIDListData)client;
- if (
sender && sock == sender
)
+ if (
!sock || (sender && sock == sender)
)
continue;
/* Send the packet */
continue;
/* Send the packet */
@@
-927,7
+927,7
@@
void silc_server_packet_relay_to_channel(SilcServer server,
sock = (SilcSocketConnection)client->connection;
idata = (SilcIDListData)client;
sock = (SilcSocketConnection)client->connection;
idata = (SilcIDListData)client;
- if (
sender_sock && sock == sender_sock
)
+ if (
!sock || (sender_sock && sock == sender_sock)
)
continue;
SILC_LOG_DEBUG(("Sending packet to client ID(%s) %s (%s)",
continue;
SILC_LOG_DEBUG(("Sending packet to client ID(%s) %s (%s)",
@@
-1596,6
+1596,9
@@
void silc_server_send_notify_on_channels(SilcServer server,
sock = (SilcSocketConnection)c->connection;
idata = (SilcIDListData)c;
sock = (SilcSocketConnection)c->connection;
idata = (SilcIDListData)c;
+ if (!sock)
+ continue;
+
packetdata.dst_id = silc_id_id2str(c->id, SILC_ID_CLIENT);
packetdata.dst_id_len = silc_id_get_len(c->id, SILC_ID_CLIENT);
packetdata.dst_id_type = SILC_ID_CLIENT;
packetdata.dst_id = silc_id_id2str(c->id, SILC_ID_CLIENT);
packetdata.dst_id_len = silc_id_get_len(c->id, SILC_ID_CLIENT);
packetdata.dst_id_type = SILC_ID_CLIENT;