chiark / gitweb /
sd-netlink: don't treat type_system->count==0 as invalid
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 23 Jun 2015 10:03:10 +0000 (12:03 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:04:18 +0000 (10:04 +0100)
commit84e862614a39d6e1d5d2317472175ec79bbc769f
tree69c62d72c1a29bee10ef01fb37224f1db959e6af
parentb72bd2c20e0f9767c0bd0f1aff97d3a77ed681c5
sd-netlink: don't treat type_system->count==0 as invalid

Empty type-systems are just fine. Avoid the nasty hack in
union-type-systems that treat empty type-systems as invalid. Instead check
for the actual types-array and make sure it's non-NULL (which is even true
for empty type-systems, due to "empty_types" array).
src/libsystemd/sd-netlink/netlink-types.c