diff options
Diffstat (limited to 'ssl/s3_msg.c')
-rw-r--r-- | ssl/s3_msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/s3_msg.c b/ssl/s3_msg.c index 8b5fd23880..8df1e6677f 100644 --- a/ssl/s3_msg.c +++ b/ssl/s3_msg.c @@ -192,10 +192,12 @@ int ssl3_send_alert(SSL *s, int level, int desc) int ssl3_dispatch_alert(SSL *s) { int i, j; + unsigned int alertlen; void (*cb) (const SSL *ssl, int type, int val) = NULL; s->s3->alert_dispatch = 0; - i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3->send_alert[0], 2, 0); + alertlen = 2; + i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3->send_alert[0], &alertlen, 1, 0); if (i <= 0) { s->s3->alert_dispatch = 1; } else { |