eiwd

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

commit 69339c7a97770ccfbd37806909fde0bab5a72318
parent 91df2ee3647750df28b7e96454f8fa39351f1feb
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri,  5 Aug 2022 10:28:01 -0700

util: guard against NULL 'freqs' in scan_freq_set_free

Since this can be used with the _auto_ macro it must be able to handle
a NULL input for error paths.

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

diff --git a/src/util.c b/src/util.c @@ -330,6 +330,9 @@ struct scan_freq_set *scan_freq_set_new(void) void scan_freq_set_free(struct scan_freq_set *freqs) { + if (!freqs) + return; + l_uintset_free(freqs->channels_5ghz); l_uintset_free(freqs->channels_6ghz); l_free(freqs);