The "!wpabuf_resize(...) == 0" condition does not make any sense. It
happens to work, but this is really supposed to simple check with
wpabuf_resize() returns non-zero and "wpabuf_resize(...)" is the
cleanest way of doing so.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
} else {
wpabuf_put_data(resp, pos, end - pos);
}
- if (!wpabuf_resize(&sta->fils_hlp_resp, wpabuf_len(resp) +
- 2 * wpabuf_len(resp) / 255 + 100) == 0) {
+ if (wpabuf_resize(&sta->fils_hlp_resp, wpabuf_len(resp) +
+ 2 * wpabuf_len(resp) / 255 + 100)) {
wpabuf_free(resp);
return;
}