diff options
author | Bodo Möller <bodo@openssl.org> | 2002-03-15 10:52:32 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-03-15 10:52:32 +0000 |
commit | 304d90425f88129911ec256fd840265fda97e9f1 (patch) | |
tree | 173f4175d96a0f42b3b8727357070d43b7ea2ed9 /ssl | |
parent | bfaa8a89e1b81fec52cc3fe15d507d838faac467 (diff) | |
download | openssl-304d90425f88129911ec256fd840265fda97e9f1.tar.gz |
fix ssl3_pending
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 31994985c9..4ccc70b061 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -56,7 +56,7 @@ * [including the GNU Public Licence.] */ /* ==================================================================== - * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. + * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -943,6 +943,9 @@ SSL_CIPHER *ssl3_get_cipher(unsigned int u) int ssl3_pending(SSL *s) { + if (s->rstate == SSL_ST_READ_BODY) + return 0; + return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0; } |