]> git.ozlabs.org Git - ppp.git/blobdiff - modules/ppp.c
fixes from Farrell
[ppp.git] / modules / ppp.c
index dcdf1c7e11ac10b0f61f3c1251a4bd4d4605c953..f2257eeaf5db33cab887f873551a51a302d470c9 100644 (file)
@@ -24,7 +24,7 @@
  * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
  * OR MODIFICATIONS.
  *
- * $Id: ppp.c,v 1.10 1997/04/30 05:44:43 paulus Exp $
+ * $Id: ppp.c,v 1.11 1997/05/22 06:45:32 paulus Exp $
  */
 
 /*
@@ -1250,7 +1250,7 @@ pass_packet(us, mp, outbound)
     int pass;
     upperstr_t *ppa;
 
-    if (us->ppa == 0) {
+    if ((ppa = us->ppa) == 0) {
        freemsg(mp);
        return 0;
     }
@@ -1267,7 +1267,7 @@ pass_packet(us, mp, outbound)
 
     if (pass < 0) {
        /* pass only if link already up, and don't update time */
-       if (us->ppa->lowerq == 0) {
+       if (ppa->lowerq == 0) {
            freemsg(mp);
            return 0;
        }