sd-netlink: fix invalid assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 Sep 2019 13:50:36 +0000 (22:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Sep 2019 12:53:42 +0000 (21:53 +0900)
commit48fb0d1301c78112360df943f2b6ebeb545b8510
tree58a6db93d2d873cc79567f8a32b465617b922626
parent69cebea78a07f67436108323138356f99bb69d33
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.
src/libsystemd/sd-netlink/netlink-message.c