summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-26 14:26:37 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-26 14:26:37 +0200
commitfcd2bfc9b886968b900766961684d167f5ccccc1 (patch)
treec417d3dfd37a6676d8141a2c67b52a517957f008
parent9376c701f426cdafb75c80c67bbf1683c71301f0 (diff)
Fix stream rejection size check
-rw-r--r--audio/avdtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index aee0d9e1..2cb3b21e 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2448,7 +2448,7 @@ static gboolean stream_rej_to_err(struct stream_rej *rej, unsigned int size,
struct avdtp_error *err,
uint8_t *acp_seid)
{
- if (size < sizeof(struct conf_rej)) {
+ if (size < sizeof(struct stream_rej)) {
error("Too small packet for stream_rej");
return FALSE;
}