The Fortinet server just closes the connection on us when it screws up
reconnection and thinks it can't allocate an IP address. Don't retry
ad infinitum; give up.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
* the protocol to handle any magic required to reopen it. */
dtls_close(vpninfo);
} else {
+ if (ppp->ppp_state == PPPS_ESTABLISH) {
+ vpn_progress(vpninfo, PRG_ERR, _("Failed to establish PPP\n"));
+ vpninfo->quit_reason = "Failed to establish PPP";
+ return -EPERM;
+ }
ret = ssl_reconnect(vpninfo);
if (ret) {
vpn_progress(vpninfo, PRG_ERR, _("Reconnect failed\n"));