a2dp: fix size check

This commit is contained in:
Wim Taymans 2021-01-08 12:54:43 +01:00
parent 9a03f8769e
commit 860389492b

View file

@ -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;