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

anqp: Fix l_strlcpy usage

This commit is contained in:
Denis Kenzior 2019-06-14 16:22:22 -05:00
parent 2ce5277f6d
commit b8d60bb848

View File

@ -253,8 +253,7 @@ static bool parse_eap(const unsigned char *anqp, unsigned int len,
method_out->method = method; method_out->method = method;
/* nai is guarenteed to NULL terminate and be < 256 bytes */ /* nai is guarenteed to NULL terminate and be < 256 bytes */
l_strlcpy(method_out->realm, nai, l_strlcpy(method_out->realm, nai, sizeof(method_out->realm));
sizeof(method_out->realm) - 1);
method_out->non_eap_inner = non_eap_inner; method_out->non_eap_inner = non_eap_inner;
method_out->eap_inner = eap_inner; method_out->eap_inner = eap_inner;
method_out->credential = credential; method_out->credential = credential;