mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix logic error. MPPE only accepts protocol numbers 0x21 through 0xFA.
PR: bin/175974
This commit is contained in:
parent
ff7824ff52
commit
c4ecf85bca
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ MPPEOutput(void *v, struct ccp *ccp, struct link *l __unused, int pri __unused,
|
|||
dictinit = 0;
|
||||
|
||||
log_Printf(LogDEBUG, "MPPE: Output: Proto %02x (%d bytes)\n", *proto, ilen);
|
||||
if (*proto < 0x21 && *proto > 0xFA) {
|
||||
if (*proto < 0x21 || *proto > 0xFA) {
|
||||
log_Printf(LogDEBUG, "MPPE: Output: Not encrypting\n");
|
||||
ccp->compout += ilen;
|
||||
ccp->uncompout += ilen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue