Diff between 24aaa5c9d680e225b80da988b465d4ec3aa59a19 and 2c8e43efc9698f6a972fd91fff50eb2c29d13785

Changed Files

File Additions Deletions Status
btio/btio.c +1 -0 modified

Full Patch

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)",