artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3827c
)
Fix the error path of the 'SIOCSIFMTU' pppoe_ioctl() case. Return error
author
mvs
<mvs@openbsd.org>
Sat, 9 Jul 2022 20:57:01 +0000
(20:57 +0000)
committer
mvs
<mvs@openbsd.org>
Sat, 9 Jul 2022 20:57:01 +0000
(20:57 +0000)
value if the `error' is set instead of continue to sppp_ioctl().
ok bluhm@
sys/net/if_pppoe.c
patch
|
blob
|
history
diff --git
a/sys/net/if_pppoe.c
b/sys/net/if_pppoe.c
index
300b805
..
c8c9d49
100644
(file)
--- a/
sys/net/if_pppoe.c
+++ b/
sys/net/if_pppoe.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_pppoe.c,v 1.8
1 2022/06/29 09:08:07
mvs Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.8
2 2022/07/09 20:57:01
mvs Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
@@
-949,6
+949,9
@@
pppoe_ioctl(struct ifnet *ifp, unsigned long cmd, caddr_t data)
if_put(eth_if);
+ if (error != 0)
+ return (error);
+
return (sppp_ioctl(ifp, cmd, data));
}
default: