summaryrefslogtreecommitdiffstats
path: root/ssl/s3_both.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-09-21 11:18:40 +0000
committerBodo Möller <bodo@openssl.org>2001-09-21 11:18:40 +0000
commit3b0b5abae3183c495dd6f46ad92490236a06a563 (patch)
tree68ccc86c7d1b97fac0ec1a8147303a2e12226ec4 /ssl/s3_both.c
parentb49124f6d9b5996f681018b2b4318f0fd88add77 (diff)
bugfix: handle HelloRequest received during handshake correctly
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r--ssl/s3_both.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c
index 68ddb143da..21531d5dbe 100644
--- a/ssl/s3_both.c
+++ b/ssl/s3_both.c
@@ -387,7 +387,11 @@ long ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok)
* if their format is correct. Does not count for
* 'Finished' MAC. */
if (p[1] == 0 && p[2] == 0 &&p[3] == 0)
+ {
+ s->init_num = 0;
skip_message = 1;
+ }
+
}
while (skip_message);