From a676380b3866f174b9e21f7d8c8a6dc8d6bcaee1 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 7 Feb 2002 09:12:22 +0000 Subject: [PATCH] updates --- CHANGES | 5 +++++ lib/silcclient/client_notify.c | 2 +- lib/silccrypt/silcrng.c | 6 +++++- lib/silcutil/silcsockconn.h | 4 ++-- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 9326b222..f74d4296 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +Thu Feb 7 10:12:25 CET 2002 Pekka Riikonen + + * 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 * Fixed the file transfer's key agreement payload to include diff --git a/lib/silcclient/client_notify.c b/lib/silcclient/client_notify.c index 360da04a..09ca7735 100644 --- a/lib/silcclient/client_notify.c +++ b/lib/silcclient/client_notify.c @@ -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; diff --git a/lib/silccrypt/silcrng.c b/lib/silccrypt/silcrng.c index 7bed81e1..7e103264 100644 --- a/lib/silccrypt/silcrng.c +++ b/lib/silccrypt/silcrng.c @@ -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"); diff --git a/lib/silcutil/silcsockconn.h b/lib/silcutil/silcsockconn.h index a7c23d5a..ff525016 100644 --- a/lib/silcutil/silcsockconn.h +++ b/lib/silcutil/silcsockconn.h @@ -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. * ***/ -- 2.43.0