This prevents an unnecessary extra iteration of waiting for PPP negotiation.
Caught via ppp-over-tls test logs.
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
}
/* Delay tunnel setup until after PPP negotiation */
- if (ppp->ppp_state != PPPS_NETWORK)
- vpninfo->delay_tunnel_reason = "PPP negotiation";
+ vpninfo->delay_tunnel_reason = (ppp->ppp_state < PPPS_NETWORK) ? "PPP negotiation" : NULL;
if (last_state != ppp->ppp_state) {
vpn_progress(vpninfo, PRG_DEBUG,