Skip to content
Commit c32c928d authored by Hoang Le's avatar Hoang Le Committed by Jakub Kicinski
Browse files

tipc: do sanity check payload of a netlink message



When we initialize nlmsghdr with no payload inside tipc_nl_compat_dumpit()
the parsing function returns -EINVAL. We fix it by making the parsing call
conditional.

Acked-by: default avatarJon Maloy <jmaloy@redhat.com>
Signed-off-by: default avatarHoang Le <hoang.h.le@dektech.com.au>
Link: https://lore.kernel.org/r/20201215033151.76139-1-hoang.h.le@dektech.com.au


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 023cae85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment