[PATCH 2/2] btio: Fix not setting getsockopt optlen for BT_SNDMTU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 btio/btio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/btio/btio.c b/btio/btio.c
index 15057f6..50760f0 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -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)",
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux