Title: [PATCH] blocking ssl3_read mildly broken

baseline: 0.9.5a

A very obscure problem involving retrying blocking reads.  Looks like something
got broken, because ssl3_read alleges that ssl3_read_packet sets
in_read_app_data, but it doesn't.  This fixes that inconsistency:

*** ssl/s3_pkt.c.orig   Thu Apr 27 13:26:39 2000
--- ssl/s3_pkt.c        Thu Apr 27 13:30:01 2000
***************
*** 911,916 ****
--- 911,921 ----
                                        bio=SSL_get_rbio(s);
                                        BIO_clear_retry_flags(bio);
                                        BIO_set_retry_read(bio);
+
+                                       /* See comment in ssl3_read.
+                                         This is the strange reset mentioned there.
+                                       */
+                                       s->s3->in_read_app_data = 0;
                                        return(-1);
                                        }
                                }

Reply via email to