diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-06 10:48:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-06 10:48:55 +0200 |
commit | 056f0498fefc4c3e3cedf11ea3ba1b04a8694118 (patch) | |
tree | 788140056e2c552adfe4e90ac797f8c821e659fd /src/libsystemd/sd-netlink | |
parent | 382b56622add2aff81bdcc8af5fa0b40c3cb64ef (diff) | |
parent | 82e4c2d656941a76d7c5f86d70cd8b435cb52860 (diff) |
Merge pull request #2947 from keszybz/test-nss
Add a test for nss modules and some related fixes
Diffstat (limited to 'src/libsystemd/sd-netlink')
-rw-r--r-- | src/libsystemd/sd-netlink/local-addresses.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd/sd-netlink/local-addresses.c b/src/libsystemd/sd-netlink/local-addresses.c index 6abd8fd0cc..ed9ee041ab 100644 --- a/src/libsystemd/sd-netlink/local-addresses.c +++ b/src/libsystemd/sd-netlink/local-addresses.c @@ -155,8 +155,7 @@ int local_addresses(sd_netlink *context, int ifindex, int af, struct local_addre n_list++; }; - if (n_list > 0) - qsort(list, n_list, sizeof(struct local_address), address_compare); + qsort_safe(list, n_list, sizeof(struct local_address), address_compare); *ret = list; list = NULL; |