From fcd2bfc9b886968b900766961684d167f5ccccc1 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 26 Feb 2009 14:26:37 +0200 Subject: Fix stream rejection size check --- audio/avdtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit