mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
a2dp: fix size check
This commit is contained in:
parent
9a03f8769e
commit
860389492b
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ static int codec_validate_config(const struct a2dp_codec *codec, uint32_t flags,
|
|||
{
|
||||
const a2dp_sbc_t *conf;
|
||||
|
||||
if (caps == NULL || caps_size < sizeof(conf))
|
||||
if (caps == NULL || caps_size < sizeof(*conf))
|
||||
return -EINVAL;
|
||||
|
||||
conf = caps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue