btio: Fix not setting getsockopt optlen for BT_SNDMTU

This commit is contained in:
Szymon Janc 2014-06-13 11:34:26 +02:00 committed by Johan Hedberg
parent 24aaa5c9d6
commit 2c8e43efc9

View File

@ -1085,6 +1085,7 @@ parse_opts:
break;
}
len = sizeof(l2o.omtu);
if (getsockopt(sock, SOL_BLUETOOTH, BT_SNDMTU,
&l2o.omtu, &len) < 0) {
ERROR_FAILED(err, "getsockopt(BT_SNDMTU)",