pppd: Fix bounds check in EAP code

Given that we have just checked vallen <= len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Bug: 151153886
Change-Id: Ibc29e1b5b17ddee256b1ff5f3e9909347403a791
Merged-In: Ibc29e1b5b17ddee256b1ff5f3e9909347403a791
1 file changed
tree: 3319aa3988fb14c85b2121bccbf5032fff6b9c9f
  1. CleanSpec.mk
  2. README.version
  3. pppd/