Fix logic error. MPPE only accepts protocol numbers 0x21 through 0xFA.
PR: bin/175974
This commit is contained in:
parent
ff7824ff52
commit
c4ecf85bca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256574
@ -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 New Issue
Block a user