diff options
author | Bodo Möller <bodo@openssl.org> | 2000-12-25 18:40:46 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-12-25 18:40:46 +0000 |
commit | a0aae68cf6f3383f248c0e1991973224f2e4498f (patch) | |
tree | 00a32cf8d31ede67946750c91b26f7ddd3647f7c /ssl/s3_lib.c | |
parent | 57d2f21782631c735ed134ee4fb0d682426e1522 (diff) | |
download | openssl-a0aae68cf6f3383f248c0e1991973224f2e4498f.tar.gz |
Fix SSL_peek and SSL_pending.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index f2bfb15a5a..47768cc281 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -782,8 +782,7 @@ SSL_CIPHER *ssl3_get_cipher(unsigned int u) int ssl3_pending(SSL *s) { - /* The problem is that it may not be the correct record type */ - return(s->s3->rrec.length); /* FIXME */ + return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0; } int ssl3_new(SSL *s) |