mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
dpp-util: move up va_end before possible error case
This was caught by static analysis
This commit is contained in:
parent
d39389afdd
commit
ed81351f15
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user