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

wscutil: Fix memset

This commit is contained in:
Denis Kenzior 2016-08-18 13:05:18 -05:00
parent af7224a973
commit f2e11f5e7c

View File

@ -1014,7 +1014,7 @@ int wsc_parse_m2(const uint8_t *pdu, uint32_t len, struct wsc_m2 *out)
uint8_t version; uint8_t version;
enum wsc_message_type msg_type; enum wsc_message_type msg_type;
memset(out, 0, sizeof(struct wsc_m1)); memset(out, 0, sizeof(struct wsc_m2));
r = wsc_parse_attrs(pdu, len, &out->version2, &iter, out->authenticator, r = wsc_parse_attrs(pdu, len, &out->version2, &iter, out->authenticator,
REQUIRED(VERSION, &version), REQUIRED(VERSION, &version),