updates
authorPekka Riikonen <priikone@silcnet.org>
Thu, 7 Feb 2002 09:12:22 +0000 (09:12 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 7 Feb 2002 09:12:22 +0000 (09:12 +0000)
CHANGES
lib/silcclient/client_notify.c
lib/silccrypt/silcrng.c
lib/silcutil/silcsockconn.h

diff --git a/CHANGES b/CHANGES
index 9326b222454188ceb3483ab7f2799e2ab4e217a2..f74d4296e40a04b3d25e86a6a525e6a612b07c03 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
+
+       * Fixed CUMODE_CHANGE notify handling to change the mode of
+         correct client.  Affected file lib/silcclient/client_notify.c.
+
 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed the file transfer's key agreement payload to include
index 360da04a75c4a6725f3b0c7f944736ac592ff3e8..09ca7735ed3174017058ec1d8c74d96cc4c0dc1b 100644 (file)
@@ -645,7 +645,7 @@ void silc_client_notify_by_server(SilcClient client,
       break;
 
     /* Save the mode */
-    chu = silc_client_on_channel(channel, client_entry);
+    chu = silc_client_on_channel(channel, client_entry2);
     if (chu)
       chu->mode = mode;
 
index 7bed81e138e9997fd34e502a42ce24e969f516a4..7e103264ab721b9b00685d0d5a5a7d8ed195e75f 100644 (file)
@@ -143,7 +143,11 @@ SilcRng silc_rng_alloc()
   memset(new->pool, 0, sizeof(new->pool));
   memset(new->key, 0, sizeof(new->key));
   new->state = NULL;
-  silc_hash_alloc("sha1", &new->sha1);
+  if (!silc_hash_alloc("sha1", &new->sha1)) {
+    silc_free(new);
+    SILC_LOG_ERROR(("Could not allocate sha1 hash, probably not registered"));
+    return NULL;
+  }
 
   new->devrandom = strdup("/dev/random");
 
index a7c23d5a90ea252e7d0fad2fd8c8de5dab0f1f8a..ff52501646aa91628fa00b2925b43d77e1894f3b 100644 (file)
@@ -300,7 +300,7 @@ int silc_socket_read(SilcSocketConnection sock);
  *
  * SYNOPSIS
  *
- *    int silc_socket_read(SilcSocketConnection sock);
+ *    int silc_socket_write(SilcSocketConnection sock);
  *
  * DESCRIPTION
  *
@@ -324,7 +324,7 @@ int silc_socket_write(SilcSocketConnection sock);
  * DESCRIPTION
  *
  *    Returns human readable error message into the `error' buffer if
- *    the socket is int error status.  Returns TRUE if error message was
+ *    the socket is in error status.  Returns TRUE if error message was
  *    written into the buffer and FALSE if there is not socket error.
  *
  ***/