]> git.ipfire.org Git - thirdparty/iproute2.git/commit
macsec: fix input range of 'icvlen' parameter
authorDavide Caratti <dcaratti@redhat.com>
Fri, 9 Sep 2016 14:02:22 +0000 (16:02 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Sep 2016 16:48:26 +0000 (09:48 -0700)
commitf20f5f79909fdc6327fcd015a3850645a236729d
tree13841edf1b28c4e1307c30408b7840ee57f033ca
parente2cfe5501f99ed17e883a02c6fe81b7f9ab6f2d7
macsec: fix input range of 'icvlen' parameter

the maximum possible ICV length in a MACsec frame is 16 octects, not 32:
fix get_icvlen() accordingly, so that a proper error message is displayed
in case input 'icvlen' is greater than 16.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Phil Sutter <phil@nwl.cc>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
ip/ipmacsec.c