fix bug causing Solaris crashes
authorPaul Mackerras <paulus@samba.org>
Mon, 14 Jul 1997 03:51:15 +0000 (03:51 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 14 Jul 1997 03:51:15 +0000 (03:51 +0000)
modules/ppp.c

index f2257eeaf5db33cab887f873551a51a302d470c9..57bf02a27b2001027436cab1598c2d477f3f6258 100644 (file)
@@ -24,7 +24,7 @@
  * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
  * OR MODIFICATIONS.
  *
- * $Id: ppp.c,v 1.11 1997/05/22 06:45:32 paulus Exp $
+ * $Id: ppp.c,v 1.12 1997/07/14 03:51:15 paulus Exp $
  */
 
 /*
@@ -934,7 +934,7 @@ dlpi_request(q, mp, us)
        reply->b_wptr += sizeof(dl_info_ack_t);
        bzero((caddr_t) info, sizeof(dl_info_ack_t));
        info->dl_primitive = DL_INFO_ACK;
-       info->dl_max_sdu = us->ppa->mtu;
+       info->dl_max_sdu = us->ppa? us->ppa->mtu: PPP_MAXMTU;
        info->dl_min_sdu = 1;
        info->dl_addr_length = sizeof(ulong);
 #ifdef DL_OTHER