mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 02:32:36 +01:00
anqp: Fix l_strlcpy usage
This commit is contained in:
parent
2ce5277f6d
commit
b8d60bb848
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user