diff options
| author | khedor <khedor@gmail.com> | 2026-05-22 20:15:23 +0300 |
|---|---|---|
| committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-05-23 11:41:36 +0300 |
| commit | 028e2090389d2b8968dfb30e4d956264718613e5 (patch) | |
| tree | f0d7e1d399af8024938d12bfb6ea2215215db123 /tests/common/pppd_process.py | |
| parent | a68821aecb2fecfc7c35fd5d49867f202d64df7f (diff) | |
| download | accel-ppp-028e2090389d2b8968dfb30e4d956264718613e5.tar.gz accel-ppp-028e2090389d2b8968dfb30e4d956264718613e5.zip | |
pppoe/disc: drop packets with unsupported PPPoE type
The unsupported-PPPoE-type branch in disc_read() logs a warning but
falls through to forward() instead of dropping the packet. Compare
with the unsupported-version branch immediately above, which has the
same shape but continues:
if (hdr->ver != 1) {
if (conf_verbose)
log_warn(...unsupported version...);
continue;
}
if (hdr->type != 1) {
if (conf_verbose)
log_warn(...unsupported type...);
/* falls through into forward() */
}
Add the missing continue so malformed packets are dropped instead of
processed.
Signed-off-by: khedor <khedor@gmail.com>
Diffstat (limited to 'tests/common/pppd_process.py')
0 files changed, 0 insertions, 0 deletions
