3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

dpp-util: move up va_end before possible error case

This was caught by static analysis
This commit is contained in:
James Prestwood 2022-03-18 09:44:16 -07:00 committed by Denis Kenzior
parent d39389afdd
commit ed81351f15

View File

@ -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 */