1 --- a/pppd/plugins/rp-pppoe/discovery.c
2 +++ b/pppd/plugins/rp-pppoe/discovery.c
3 @@ -548,7 +548,9 @@ discovery(PPPoEConnection *conn)
4 conn->discoveryState = STATE_SENT_PADI;
5 waitForPADO(conn, timeout);
10 } while (conn->discoveryState == STATE_SENT_PADI);
12 timeout = conn->discoveryTimeout;
13 @@ -563,7 +565,9 @@ discovery(PPPoEConnection *conn)
15 conn->discoveryState = STATE_SENT_PADR;
16 waitForPADS(conn, timeout);
20 } while (conn->discoveryState == STATE_SENT_PADR);