mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
l2test: Fix using incorrect size of option
Use size of option instead of size of pointer
This commit is contained in:
parent
68f9701922
commit
5415f0b8c1
@ -287,7 +287,7 @@ static int setopts(int sk, struct l2cap_options *opts)
|
||||
{
|
||||
if (bdaddr_type == BDADDR_BREDR || cid)
|
||||
return setsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, opts,
|
||||
sizeof(opts));
|
||||
sizeof(*opts));
|
||||
|
||||
return setsockopt(sk, SOL_BLUETOOTH, BT_RCVMTU, &opts->imtu,
|
||||
sizeof(opts->imtu));
|
||||
|
Loading…
Reference in New Issue
Block a user