Handle unknown channel in invite notify.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 29 Dec 2006 21:20:34 +0000 (21:20 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 29 Dec 2006 21:20:34 +0000 (21:20 +0000)
lib/silcclient/client_notify.c

index a8bdf31a69d67776ac394ddc961ab31464f94e89..90c184903c265959a8d1520f6c6496dd605fb976 100644 (file)
@@ -279,6 +279,8 @@ SILC_FSM_STATE(silc_client_notify_invite)
 
   /* Get the channel entry */
   channel = silc_client_get_channel_by_id(client, conn, &id.u.channel_id);
+  if (!channel)
+    goto out;
 
   /* If channel is being resolved handle notify after resolving */
   if (channel->internal.resolve_cmd_ident) {