Fix reference count bug leading to memory corruption on duplicate deletions.
[silc.git] / lib / silcclient / client_internal.h
index 4af354509817b512d8c50f68475467fd88205fda..54582e20e3af80fb0b1143397209fb85c8dc5f63 100644 (file)
@@ -108,7 +108,7 @@ struct SilcClientInternalStruct {
   char *silc_client_version;            /* Version set by application */
   SilcClientRunning running;            /* Running/Stopped callback */
   void *running_context;                /* Context for runnign callback */
-  SilcAtomic16 conns;                   /* Number of connections in client */
+  SilcAtomic32 conns;                   /* Number of connections in client */
   SilcUInt16 next_session_id;           /* Next FTP session ID */
 
   /* Events */
@@ -139,7 +139,6 @@ struct SilcClientConnectionInternalStruct {
   SilcStream user_stream;               /* Low level stream in connecting */
   char *disconnect_message;             /* Disconnection message */
   char *away_message;                   /* Away message */
-  void *prv_waiter;                     /* Private message packet waiter */
 
   SilcIDCache client_cache;             /* Client entry cache */
   SilcIDCache channel_cache;            /* Channel entry cache */