[csmaild-cvs] csmaild/src/Imap/Commands ImapCommand.cs,1.9,1.10
Brought to you by:
tamc
From: <ta...@us...> - 2003-07-30 22:37:59
|
Update of /cvsroot/csmaild/csmaild/src/Imap/Commands In directory sc8-pr-cvs1:/tmp/cvs-serv15750/src/Imap/Commands Modified Files: ImapCommand.cs Log Message: Fixed an issue when the client doesn't send enough data in the argument, returns a BAD now instead of throwing an exception ;) Index: ImapCommand.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Imap/Commands/ImapCommand.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ImapCommand.cs 29 Jul 2003 00:46:28 -0000 1.9 --- ImapCommand.cs 30 Jul 2003 22:37:56 -0000 1.10 *************** *** 130,134 **** for(int idx = 0; idx < mArgumentTypes.Length; ++idx) { ! if(mUnparsedArguments[mUnparsedArgumentIdx++] != ' ') return false; object arg = ParseArgument(mArgumentTypes[idx]); --- 130,136 ---- for(int idx = 0; idx < mArgumentTypes.Length; ++idx) { ! if(mUnparsedArgumentIdx >= mUnparsedArguments.Length) ! return false; ! else if(mUnparsedArguments[mUnparsedArgumentIdx++] != ' ') return false; object arg = ParseArgument(mArgumentTypes[idx]); |