eiwd

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

commit da8a87fcf5b116b120569ffa3d9d93ebc4851232
parent 3ccaf7beedb3a15a3c3319c07271c5de0c5c867e
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu,  7 Jul 2022 10:55:03 -0700

client: check NULL return for DPP cmd_show

If the DPP interface goes away this could return NULL which was
unchecked. Caught by static analysis.

Diffstat:
Mclient/dpp.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/client/dpp.c b/client/dpp.c @@ -284,6 +284,11 @@ static enum cmd_status cmd_show(const char *device_name, device_proxy_find(device_name, IWD_DPP_INTERFACE); char *caption = l_strdup_printf("%s: %s", "DPP", device_name); + if (!proxy) { + display("No DPP interface on device: '%s'\n", device_name); + return CMD_STATUS_INVALID_VALUE; + } + proxy_properties_display(proxy, caption, MARGIN, 20, 47); l_free(caption);