updates.
[silc.git] / apps / silcd / packet_send.c
index a88eedbeac363bf0ce46ab0694529d98d77cb539..a08c5eb0d6b95ba67a33852a7e0c57cf9c3291b2 100644 (file)
@@ -35,6 +35,11 @@ int silc_server_packet_send_real(SilcServer server,
 {
   int ret;
 
+  /* If rekey protocol is active we must assure that all packets are
+     sent through packet queue. */
+  if (SILC_SERVER_IS_REKEY(sock))
+    force_send = FALSE;
+
   /* Send the packet */
   ret = silc_packet_send(sock, force_send);
   if (ret != -2)