Fix logic error. MPPE only accepts protocol numbers 0x21 through 0xFA.

PR:	bin/175974
This commit is contained in:
Kevin Lo 2013-10-16 02:55:31 +00:00
parent ff7824ff52
commit c4ecf85bca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256574

View File

@ -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;