* [PATCH] dvb-apps : libdvben50221 : fix size of "close_session_response"
@ 2014-05-28 8:06 Joaquin Anton Guirao
0 siblings, 0 replies; only message in thread
From: Joaquin Anton Guirao @ 2014-05-28 8:06 UTC (permalink / raw)
To: linux-media; +Cc: Michal Godek
The expected data lenght of the session layer message
"close_session_response" should be 3 bytes and not 4. This is defined in
CENELEC specification EN 50221 (Section 7.2.6.6 Close Session Response,
Table 11: Close Session Response coding)
Signed-of-by: Joaquin Anton Guirao <j.guirao@samsung.com>
diff -r 3d43b280298c lib/libdvben50221/en50221_session.c
--- a/lib/libdvben50221/en50221_session.c Fri Mar 21 20:26:36 2014
+0100
+++ b/lib/libdvben50221/en50221_session.c Wed May 28 09:40:15 2014
+0200
@@ -715,13 +715,13 @@
uint8_t connection_id)
{
// check
- if (data_length < 5) {
+ if (data_length < 4) {
print(LOG_LEVEL, ERROR, 1,
"Received data with invalid length from module on slot
%02x\n",
slot_id);
return;
}
- if (data[0] != 4) {
+ if (data[0] != 3) {
print(LOG_LEVEL, ERROR, 1,
"Received data with invalid length from module on slot
%02x\n",
slot_id);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-28 8:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 8:06 [PATCH] dvb-apps : libdvben50221 : fix size of "close_session_response" Joaquin Anton Guirao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).