examples/l2fwd-crypto: fix overflow
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 7 Feb 2017 14:17:25 +0000 (14:17 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 10 Feb 2017 15:04:36 +0000 (16:04 +0100)
commitad476dd3ac60b010f8247141f802c80361cdc293
tree22529bcfcf4002d408e034a7a1a3aa52ded2ff91
parent0ef3f0e04c3ec01e12b7a6a187098da9fdb6bfdc
examples/l2fwd-crypto: fix overflow

This commit fixes an array overflow when number of crypto devices
is higher than 32.

Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
examples/l2fwd-crypto/main.c