aboutsummaryrefslogtreecommitdiff
path: root/ssl.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-06-30 04:13:44 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-06-30 04:13:44 +0000
commitff0c034d341dee0c83a7043fd44bbab6c2d787d0 (patch)
treecf4f796365e5bb0a8e4ad195b518ca5f510a819f /ssl.c
parentpkcs11 changes: (diff)
downloadopenvpn-ff0c034d341dee0c83a7043fd44bbab6c2d787d0.tar.xz
Fixed bug introduced with the --port-share directive
back in r893 which causes TLS soft resets (1 per hour by default) in TCP server mode to force a blockage of tunnel packets and later time-out and restart the connection. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1076 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'ssl.c')
-rw-r--r--ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl.c b/ssl.c
index c7f1e73..3f0c664 100644
--- a/ssl.c
+++ b/ssl.c
@@ -1795,7 +1795,7 @@ key_state_init (struct tls_session *session, struct key_state *ks)
ks->ack_write_buf = alloc_buf (BUF_SIZE (&session->opt->frame));
reliable_init (ks->send_reliable, BUF_SIZE (&session->opt->frame),
FRAME_HEADROOM (&session->opt->frame), TLS_RELIABLE_N_SEND_BUFFERS,
- session->opt->xmit_hold);
+ ks->key_id ? false : session->opt->xmit_hold);
reliable_init (ks->rec_reliable, BUF_SIZE (&session->opt->frame),
FRAME_HEADROOM (&session->opt->frame), TLS_RELIABLE_N_REC_BUFFERS,
false);