commit | cc96f6b7a491b99714cd12712db6289e4d6dbb17 | [log] [tgz] |
---|---|---|
author | Bodo Möller <bodo@openssl.org> | Tue Jan 11 08:18:55 2000 +0000 |
committer | Bodo Möller <bodo@openssl.org> | Tue Jan 11 08:18:55 2000 +0000 |
tree | 95961bd309f4faeeecdfd7bed1ad9089fa33116c | |
parent | 3cc6cdea0f673eadc61b97756a2ff46281749b5e [diff] [blame] |
add check for internal error
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 7728284..93d1461 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c
@@ -167,6 +167,11 @@ 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;