add check for internal error
This commit is contained in:
parent
3cc6cdea0f
commit
cc96f6b7a4
@ -167,6 +167,11 @@ static int ssl3_read_n(SSL *s, int n, int max, int extend)
|
|||||||
if (max > max_max)
|
if (max > max_max)
|
||||||
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;
|
off = s->packet_length;
|
||||||
newb = s->s3->rbuf.left;
|
newb = s->s3->rbuf.left;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user