Static analyzer bug fixes
[silc.git] / lib / silcclient / client_prvmsg.c
index 2242fd34d28a54ad812b5885c6133e09c21fd2dc..5dd74141ceea07547d09b7fe95b737e7efb86afc 100644 (file)
@@ -329,7 +329,8 @@ static void silc_client_private_message_key_cb(SilcClient client,
 
   /* Mark that we are responder */
   client_entry = silc_dlist_get(clients);
-  client_entry->internal.prv_resp = TRUE;
+  if (client_entry)
+    client_entry->internal.prv_resp = TRUE;
 
   /* XXX we should notify application that remote wants to set up the
      static key.  And we should tell if we already have key with remote.