ifx bug with codeing of version 12402

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36518 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-04-14 06:25:22 +00:00
parent 5fac2e2ca2
commit 74c57bc2ce
2 changed files with 11 additions and 12 deletions

View file

@ -7169,6 +7169,7 @@ GS_PRIVATE_INTERNAL(GSMimeSMTPClient)
if (sep != ' ' && sep != '-')
{
NSLog(@"Server made illegal response ... %@", s);
RELEASE(s);
[self _shutdown: [self _response: @"bad format"]];
return;
}

View file

@ -281,20 +281,18 @@ static Class NSMutableDataMallocClass;
}
bytePtr = &bytes[sizeof(bytes) - byteCount];
}
/* We normally store the count as a 32bit integer ... but if it's
* very big, we store 0xffffffff and then an additional 64bit value
* containing the actual count.
*/
if (count >= 0xffffffff)
{
c = 0xffffffff;
}
else
{
/* We normally store the count as a 32bit integer ... but if it's
* very big, we store 0xffffffff and then an additional 64bit value
* containing the actual count.
*/
if (count >= 0xffffffff)
{
c = 0xffffffff;
}
else
{
c = count;
}
c = count;
}
switch (*type)