projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018c99a
)
Check for NULL in client_on_channel.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 6 Jul 2000 13:18:07 +0000
(13:18 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 6 Jul 2000 13:18:07 +0000
(13:18 +0000)
apps/silcd/server.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index d0a1ccfb22e941073da44059611d5b0e599b2d3b..5e67474b8437851d59616f0bd787b56d17a060b5 100644
(file)
--- a/
apps/silcd/server.c
+++ b/
apps/silcd/server.c
@@
-25,6
+25,9
@@
/*
* $Id$
* $Log$
+ * Revision 1.5 2000/07/06 13:18:07 priikone
+ * Check for NULL in client_on_channel.
+ *
* Revision 1.4 2000/07/05 06:14:01 priikone
* Global costemic changes.
*
@@
-3054,6
+3057,9
@@
int silc_server_client_on_channel(SilcClientList *client,
{
int i;
+ if (!client || !channel)
+ return FALSE;
+
for (i = 0; i < client->channel_count; i++) {
if (client->channel[i] == channel)
return TRUE;