Message ID | 20230906114234.10617-2-claudia.rosu@nxp.com |
---|---|
State | New |
Headers | show |
Series | btio: Fix BASE copy from getsockopt() | expand |
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 --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;