We set the `error' but we forgot to return it and continue to
sppp_ioctl().

Index: sys/net/if_pppoe.c
===================================================================
RCS file: /cvs/src/sys/net/if_pppoe.c,v
retrieving revision 1.81
diff -u -p -r1.81 if_pppoe.c
--- sys/net/if_pppoe.c  29 Jun 2022 09:08:07 -0000      1.81
+++ sys/net/if_pppoe.c  9 Jul 2022 19:05:12 -0000
@@ -949,6 +949,9 @@ pppoe_ioctl(struct ifnet *ifp, unsigned 
 
                if_put(eth_if);
 
+               if (error != 0)
+                       return (error);
+
                return (sppp_ioctl(ifp, cmd, data));
        }
        default:

Reply via email to