clientlib: Close connection after failed rekey
[silc.git] / lib / silcclient / client_connect.c
index de87143f047ff3f9dc6be0eb51df4c66b2743fd9..145f398f1a3916d9b9dd72a9a9ec2f579c9aa931 100644 (file)
@@ -262,6 +262,9 @@ static void silc_client_rekey_completion(SilcSKE ske,
     silc_ske_free(conn->internal->ske);
     conn->internal->ske = NULL;
     silc_fsm_finish(fsm);
+
+    /* Close connection */
+    silc_client_close_connection(client, conn);
     return;
   }