nat: deterministic: disallow invalid config 80/28480/2
authorKlement Sekera <ksekera@cisco.com>
Tue, 23 Jun 2020 13:12:33 +0000 (13:12 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 18 Aug 2020 19:47:21 +0000 (19:47 +0000)
commitbef1019aa30a93c4eb4ca7da48651c920609b23c
treee12c582a216c3298f0252626e6e9195ecef5bc19
parentccaef621a8f11ac84b29d2b86c931facb4aa22b0
nat: deterministic: disallow invalid config

Prevent overflow if input network prefix is too small and crash on
packet #1 due to vector not being allocated/initialized.

Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I3494cc62ce889df48cc59cc9340b5dd70338c3a8
(cherry picked from commit f3d7bd9d4d652b1c4b687267acdb9fdb908a74bd)
src/plugins/nat/nat44_cli.c
src/plugins/nat/nat_det.c