eiwd

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

commit ed81351f159d2f88f2283b33de99c3205fa551ca
parent d39389afdd0ea7b8e2d3057791057ed13fcfd1a6
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 18 Mar 2022 09:44:16 -0700

dpp-util: move up va_end before possible error case

This was caught by static analysis

Diffstat:
Msrc/dpp-util.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dpp-util.c b/src/dpp-util.c @@ -408,6 +408,8 @@ size_t dpp_append_wrapped_data(const void *ad0, size_t ad0_len, va_arg(va, void*); } + va_end(va); + if (to_len < attrs_len + 4 + 16) return false; @@ -415,8 +417,6 @@ size_t dpp_append_wrapped_data(const void *ad0, size_t ad0_len, ptr = plaintext; - va_end(va); - va_start(va, num_attrs); /* Build up plaintext attributes */