diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-01-26 19:47:37 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-01-26 19:47:37 +0000 |
commit | d5e7f2f2c3262c0dbf21363259b0477082c7b98e (patch) | |
tree | 0635805e77e1f11e97b7859398501cce0e743e46 /ssl/s3_pkt.c | |
parent | 1bfdbd8e75a70ca2d59e868f0b8947b661f709fd (diff) |
PR: 1949
Submitted by: steve@openssl.org
More robust fix and workaround for PR#1949. Don't try to work out if there
is any write pending data as this can be unreliable: always flush.
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 9f2e16de87..da63e50aed 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -330,7 +330,7 @@ again: #if 0 fprintf(stderr, "Record type=%d, Length=%d\n", rr->type, rr->length); #endif - +fprintf(stderr, "RX version %x, Expecting %x\n", version, s->version); /* Lets check version */ if (!s->first_packet) { @@ -736,7 +736,7 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, *(p++)=(s->version>>8); *(p++)=s->version&0xff; - +fprintf(stderr, "Wrote version %x\n", s->version); /* field where we are to write out packet length */ plen=p; p+=2; |