Skip to content

Commit

Permalink
If DTLS rehandshake fails, then reconnect.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
  • Loading branch information
nmav committed Feb 18, 2014
1 parent 24245a6 commit c02460c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dtls.c
Expand Up @@ -758,9 +758,8 @@ int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout)
vpninfo->dtls_state = DTLS_CONNECTING;
ret = dtls_try_handshake(vpninfo);
if (ret) {
vpn_progress(vpninfo, PRG_ERR, _("DTLS Rehandshake failed\n"));
vpninfo->quit_reason = "DTLS rehandshake failed";
return ret;
vpn_progress(vpninfo, PRG_ERR, _("DTLS Rehandshake failed; reconnecting.\n"));
return connect_dtls_socket(vpninfo);
}
}

Expand Down

0 comments on commit c02460c

Please sign in to comment.