]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/Ip6Dxe: Fix ASSERT logic in Ip6ProcessRouterAdvertise()
authorMaciej Rabeda <maciej.rabeda@linux.intel.com>
Wed, 1 Apr 2020 09:43:55 +0000 (11:43 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 2 Apr 2020 09:27:44 +0000 (09:27 +0000)
commit4deef2d865efdc61d1a53ad7bd48f9dd42560b45
tree4ec1d49bd20b9f8d83a638246564e96f84e20582
parente210fc130e5c9738909dca432bbf8bf277ba6e37
NetworkPkg/Ip6Dxe: Fix ASSERT logic in Ip6ProcessRouterAdvertise()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2655

This patch fixes reversed logic of recently added ASSERTs which should
ensure that Ip6IsNDOptionValid() implementation properly reacts to invalid
packets.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Fixes: 9c20342eed70ec99ec50cd73cb81804299f05403
NetworkPkg/Ip6Dxe/Ip6Nd.c