mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-14 16:09:24 +01:00
wiphy: Use l_memdup instead of l_malloc and memcpy
Converting l_malloc() and memcpy() function pairs to use new l_memdup() function.
This commit is contained in:
parent
7ec9c468f5
commit
275d067123
@ -578,8 +578,7 @@ static bool parse_ie(struct bss *bss, const void *data, uint16_t len)
|
||||
}
|
||||
|
||||
bss->ssid_len = iter.len;
|
||||
bss->ssid = l_malloc(bss->ssid_len);
|
||||
memcpy(bss->ssid, iter.data, iter.len);
|
||||
bss->ssid = l_memdup(iter.data, iter.len);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user