linux-cp: make check of message ts null-tolerant 20/35520/2
authorAlexander Chernavin <achernavin@netgate.com>
Wed, 20 Oct 2021 11:52:46 +0000 (11:52 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 3 Mar 2022 14:26:48 +0000 (14:26 +0000)
commit87e92c6586747a790ae514effb79b86a3e53958e
treea779cccd2027c98b66351861d6a0cb18ef2b6ed6
parentadac308aa8033de28ec9e627af2ed517f37aba6a
linux-cp: make check of message ts null-tolerant

Type: improvement

For some message types, timestamps are checked on netlink message to
decide whether the message should be applied. For notification messages
timestamps are expected to be always available.

With this change, before accessing the timestamp, make sure the message
info object that carries it is not null. If it is null, pass the check.
This is to be ready to process dump replies that will not need the
timestamp check and will have the message info object set to null.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Change-Id: Ic7211c0d451d72f6a5248898b3a8f8e0bca8f7aa
src/plugins/linux-cp/lcp_router.c