diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/s3_pkt.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_pkt.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/libssl/s3_pkt.c b/src/lib/libssl/s3_pkt.c index 60c51146ac..5ef25a4059 100644 --- a/src/lib/libssl/s3_pkt.c +++ b/src/lib/libssl/s3_pkt.c | |||
@@ -619,6 +619,10 @@ do_ssl3_write(SSL *s, int type, const unsigned char *buf, | |||
619 | if (i <= 0) | 619 | if (i <= 0) |
620 | return (i); | 620 | return (i); |
621 | /* if it went, fall through and send more stuff */ | 621 | /* if it went, fall through and send more stuff */ |
622 | /* we may have released our buffer, so get it again */ | ||
623 | if (wb->buf == NULL) | ||
624 | if (!ssl3_setup_write_buffer(s)) | ||
625 | return -1; | ||
622 | } | 626 | } |
623 | 627 | ||
624 | if (len == 0 && !create_empty_fragment) | 628 | if (len == 0 && !create_empty_fragment) |
diff --git a/src/lib/libssl/src/ssl/s3_pkt.c b/src/lib/libssl/src/ssl/s3_pkt.c index 60c51146ac..5ef25a4059 100644 --- a/src/lib/libssl/src/ssl/s3_pkt.c +++ b/src/lib/libssl/src/ssl/s3_pkt.c | |||
@@ -619,6 +619,10 @@ do_ssl3_write(SSL *s, int type, const unsigned char *buf, | |||
619 | if (i <= 0) | 619 | if (i <= 0) |
620 | return (i); | 620 | return (i); |
621 | /* if it went, fall through and send more stuff */ | 621 | /* if it went, fall through and send more stuff */ |
622 | /* we may have released our buffer, so get it again */ | ||
623 | if (wb->buf == NULL) | ||
624 | if (!ssl3_setup_write_buffer(s)) | ||
625 | return -1; | ||
622 | } | 626 | } |
623 | 627 | ||
624 | if (len == 0 && !create_empty_fragment) | 628 | if (len == 0 && !create_empty_fragment) |