From d5a9259d45ef4461a206fce41a4a3323686d80ad Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 15 Mar 2003 03:02:13 +0000 Subject: [PATCH] * mms: revert some parts. --- modules/access/mms/mms.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/access/mms/mms.c b/modules/access/mms/mms.c index f31996533a..16250e29a0 100644 --- a/modules/access/mms/mms.c +++ b/modules/access/mms/mms.c @@ -2,7 +2,7 @@ * mms.c: MMS access plug-in ***************************************************************************** * 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 * @@ -1574,7 +1574,6 @@ static int mms_ParseCommand( input_thread_t *p_input, { msg_Warn( p_input, "truncated command (header incomplete)" ); p_access->i_command = 0; - *pi_used = 0; return( -1 ); } i_id = GetDWLE( p_data + 4 ); @@ -1594,7 +1593,6 @@ static int mms_ParseCommand( input_thread_t *p_input, "truncated command (missing %d bytes)", i_length - i_data ); p_access->i_command = 0; - *pi_used = 0; return( -1 ); } else if( i_length < p_access->i_cmd ) @@ -1640,7 +1638,6 @@ static int mms_ParsePacket( input_thread_t *p_input, if( i_data <= 8 ) { msg_Warn( p_input, "truncated packet (header incomplete)" ); - *pi_used = 0; return( -1 ); } @@ -1873,6 +1870,10 @@ static int mms_ReceiveCommand( input_thread_t *p_input ) break; } } + else + { + return( -1 ); + } } return( 0 ); -- 2.39.2