diff mbox series

[BlueZ,1/1] btio: Fix BASE copy from getsockopt()

Message ID 20230906114234.10617-2-claudia.rosu@nxp.com (mailing list archive)
State Accepted
Commit dc13da09d78b3df761d27ee8f4bf7089afe37788
Headers show
Series btio: Fix BASE copy from getsockopt() | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

Commit Message

Claudia Draghicescu Sept. 6, 2023, 11:42 a.m. UTC
Fix copy of BASE from getsockopt() and update base length.

---
 btio/btio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com Sept. 6, 2023, 1:26 p.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=781979

---Test result---

Test Summary:
CheckPatch                    PASS      0.54 seconds
GitLint                       PASS      0.36 seconds
BuildEll                      PASS      27.76 seconds
BluezMake                     PASS      886.12 seconds
MakeCheck                     PASS      13.61 seconds
MakeDistcheck                 PASS      159.08 seconds
CheckValgrind                 PASS      261.68 seconds
CheckSmatch                   PASS      349.78 seconds
bluezmakeextell               PASS      106.04 seconds
IncrementalBuild              PASS      722.14 seconds
ScanBuild                     PASS      1088.63 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/btio/btio.c b/btio/btio.c
index 8178250d2..8d9959038 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -1649,10 +1649,12 @@  static gboolean iso_get(int sock, GError **err, BtIOOption opt1, va_list args)
 		return FALSE;
 	}
 
-	if (getsockopt(sock, SOL_BLUETOOTH, BT_ISO_BASE, &base, &len) < 0) {
+	if (getsockopt(sock, SOL_BLUETOOTH, BT_ISO_BASE,
+			&base.base, &len) < 0) {
 		ERROR_FAILED(err, "getsockopt(BT_ISO_BASE)", errno);
 		return FALSE;
 	}
+	base.base_len = len;
 
 	if (!get_src(sock, &src, sizeof(src), err))
 		return FALSE;