Skip to content

Commit 6cefad3

Browse files
jsiverskogstephanosio
authored andcommitted
Bluetooth: BAP: Shell: Fix NULL pointer dereference
Make sure 'state' is valid. Signed-off-by: Jacob Siverskog <[email protected]>
1 parent e0b540d commit 6cefad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/shell/bap_scan_delegator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static int cmd_bap_scan_delegator_term_pa(const struct shell *sh, size_t argc,
493493
return -ENOEXEC;
494494
}
495495

496-
err = pa_sync_term(NULL);
496+
err = pa_sync_term(state);
497497
if (err != 0) {
498498
shell_error(ctx_shell, "Failed to terminate PA sync: %d", err);
499499

0 commit comments

Comments
 (0)