eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 3dcf1fd9d80ea241e57ef577410450c37976c0f5
parent c295fba54676581dd88b30c7f40697f704ceb2e0
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon,  7 Jun 2021 17:22:43 -0500

ip-pool: Sanity check addr_str_list

Diffstat:
Msrc/ip-pool.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/ip-pool.c b/src/ip-pool.c @@ -143,6 +143,9 @@ int ip_pool_select_addr4(const char **addr_str_list, uint8_t subnet_prefix_len, int err = -EINVAL; char ipstr[INET_ADDRSTRLEN]; + if (!addr_str_list || !addr_str_list[0]) + goto cleanup; + /* Build a sorted list of used/unavailable subnets */ for (entry = l_queue_get_entries((struct l_queue *) used_addr4_list); entry; entry = entry->next) {