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>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commitd3d19aaf2eee5a6bdbdaa087dfa51e2c7e3933c4
treeaaddcdce2fb45aed41bd2eaea04e4e5aa4bcc55e
parentcbab995378cfe32130ed18cdb9a83f0200081f63
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