if (max > max_max)
max = max_max;
}
+ if (n > max) /* does not happen */
+ {
+ SSLerr(SSL_F_SSL3_READ_N,SSL_R_INTERNAL_ERROR);
+ return -1;
+ }
off = s->packet_length;
newb = s->s3->rbuf.left;
s->s3->rbuf.offset = off + n;
s->s3->rbuf.left = newb - n;
s->packet_length += n;
+ s->rwstate=SSL_NOTHING;
return(n);
}
goto f_err;
}
- s->rstate=SSL_ST_READ_BODY;
+ /* now s->rstate == SSL_ST_READ_BODY; */
}
/* get and decode the data */