sd-netlink: fix invalid assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 Sep 2019 13:50:36 +0000 (22:50 +0900)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
commit9831ba277139418f3cdf866925c575bedc8ced80
tree5832c6990192d616cd915050def1566175f7cadb
parentdc02da8d7b78da356d4882f8f3791d96f3fceab9
sd-netlink: fix invalid assertion

It is natural that n_attiributes is less than type. But in that case,
the message does not contain any message about the type. So, we should
not abort execution with assertion, but just return -ENODATA.

(cherry picked from commit 48fb0d1301c78112360df943f2b6ebeb545b8510)
(cherry picked from commit a321507476af07b9ce743608a15156f2bc43da1d)

Gbp-Pq: Name sd-netlink-fix-invalid-assertion.patch
src/libsystemd/sd-netlink/netlink-message.c