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>
Sun, 10 Nov 2019 23:58:41 +0000 (23:58 +0000)
commitbe1ea1a56910e6113288016dafbd8a8f0fa2f257
tree8089bd02d9b28056f7fb45f796299e800e1dbf78
parent8303c45ea4c63c76ee7686d5bcfb464bd64a2326
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