Oops! Read a full buffer instead of some spurious number from elswhere.

This commit is contained in:
Ben Laurie 2000-11-21 21:37:48 +00:00
parent 4e773226f5
commit cd26e6c79d

View File

@ -347,7 +347,7 @@ int main(int argc,char **argv)
}
/* FIXME: we should only extract if stdout is ready */
n=SSLStateMachine_read_extract(pMachine,buf,n);
n=SSLStateMachine_read_extract(pMachine,buf,sizeof buf);
if(n < 0)
{
SSLStateMachine_print_error(pMachine,"read extract failed");