X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Flcp.c;h=e44a78125dde573b62bad33c87b966dfcfdca78a;hb=cb67581446e926290c6147634f7f467f48c806b5;hp=442ae227a5143215a863130bc138bc22c4225f17;hpb=c4aa99cfadf0d5de94be64b8e76d7fbbf415b4df;p=ppp.git diff --git a/pppd/lcp.c b/pppd/lcp.c index 442ae22..e44a781 100644 --- a/pppd/lcp.c +++ b/pppd/lcp.c @@ -40,7 +40,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: lcp.c,v 1.64 2002/12/04 23:03:32 paulus Exp $" +#define RCSID "$Id: lcp.c,v 1.65 2003/03/03 05:11:46 paulus Exp $" /* * TODO: @@ -433,9 +433,10 @@ lcp_lowerup(unit) * but accept A/C and protocol compressed packets * if we are going to ask for A/C and protocol compression. */ - ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0); - ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff), - wo->neg_pcompression, wo->neg_accompression); + if (ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0) < 0 + || ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff), + wo->neg_pcompression, wo->neg_accompression) < 0) + return; peer_mru[unit] = PPP_MRU; if (listen_time != 0) {