Commit d5a9259d authored by Laurent Aimar's avatar Laurent Aimar

* mms: revert some parts.

parent b336d67d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* mms.c: MMS access plug-in * mms.c: MMS access plug-in
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: mms.c,v 1.24 2003/03/15 02:33:23 fenrir Exp $ * $Id: mms.c,v 1.25 2003/03/15 03:02:13 fenrir Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -1574,7 +1574,6 @@ static int mms_ParseCommand( input_thread_t *p_input, ...@@ -1574,7 +1574,6 @@ static int mms_ParseCommand( input_thread_t *p_input,
{ {
msg_Warn( p_input, "truncated command (header incomplete)" ); msg_Warn( p_input, "truncated command (header incomplete)" );
p_access->i_command = 0; p_access->i_command = 0;
*pi_used = 0;
return( -1 ); return( -1 );
} }
i_id = GetDWLE( p_data + 4 ); i_id = GetDWLE( p_data + 4 );
...@@ -1594,7 +1593,6 @@ static int mms_ParseCommand( input_thread_t *p_input, ...@@ -1594,7 +1593,6 @@ static int mms_ParseCommand( input_thread_t *p_input,
"truncated command (missing %d bytes)", "truncated command (missing %d bytes)",
i_length - i_data ); i_length - i_data );
p_access->i_command = 0; p_access->i_command = 0;
*pi_used = 0;
return( -1 ); return( -1 );
} }
else if( i_length < p_access->i_cmd ) else if( i_length < p_access->i_cmd )
...@@ -1640,7 +1638,6 @@ static int mms_ParsePacket( input_thread_t *p_input, ...@@ -1640,7 +1638,6 @@ static int mms_ParsePacket( input_thread_t *p_input,
if( i_data <= 8 ) if( i_data <= 8 )
{ {
msg_Warn( p_input, "truncated packet (header incomplete)" ); msg_Warn( p_input, "truncated packet (header incomplete)" );
*pi_used = 0;
return( -1 ); return( -1 );
} }
...@@ -1873,6 +1870,10 @@ static int mms_ReceiveCommand( input_thread_t *p_input ) ...@@ -1873,6 +1870,10 @@ static int mms_ReceiveCommand( input_thread_t *p_input )
break; break;
} }
} }
else
{
return( -1 );
}
} }
return( 0 ); return( 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment