update.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 15 Mar 2001 10:54:13 +0000 (10:54 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 15 Mar 2001 10:54:13 +0000 (10:54 +0000)
CHANGES
apps/silcd/server.c

diff --git a/CHANGES b/CHANGES
index aead67d541cafd931e71a94bd116ce879023d9bb..73afc3098bb9df19b8dca9f486bd6e968858cbf6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
+
+       * Fixed fatal bug in failure packet handling.  Server ignored
+         the failiure and thus crashed when it came.
+
 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
 
        * Added new SILC_CF_LAG_STRICT command flag that strictly forces
index 849fc10bbeaeb085cb4f008d4467ce1ff9b0aedc..47a62ddb9b579ddc8782e3cef4becfa0969dc11b 100644 (file)
@@ -1028,7 +1028,8 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection_second)
 
   SILC_LOG_DEBUG(("Start"));
 
-  if (protocol->state == SILC_PROTOCOL_STATE_ERROR) {
+  if (protocol->state == SILC_PROTOCOL_STATE_ERROR ||
+      protocol->state == SILC_PROTOCOL_STATE_FAILURE) {
     /* Error occured during protocol */
     silc_protocol_free(protocol);
     silc_ske_free_key_material(ctx->keymat);
@@ -1126,7 +1127,8 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection_final)
 
   SILC_LOG_DEBUG(("Start"));
 
-  if (protocol->state == SILC_PROTOCOL_STATE_ERROR) {
+  if (protocol->state == SILC_PROTOCOL_STATE_ERROR ||
+      protocol->state == SILC_PROTOCOL_STATE_FAILURE) {
     /* Error occured during protocol */
     silc_protocol_free(protocol);
     if (ctx->packet)