From fd56a8d74b9c1b9f7005fbc003d98f1253cd5eee Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 17 Sep 2021 15:06:51 -0400 Subject: Import LibreSSL 3.4.0 --- tls_server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tls_server.c') diff --git a/tls_server.c b/tls_server.c index a709a2b..0a8ec47 100644 --- a/tls_server.c +++ b/tls_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_server.c,v 1.45 2019/05/13 22:36:01 bcook Exp $ */ +/* $OpenBSD: tls_server.c,v 1.47 2021/06/14 03:53:59 tb Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -109,7 +109,7 @@ tls_servername_cb(SSL *ssl, int *al, void *arg) inet_pton(AF_INET6, name, &addrbuf) == 1) return (SSL_TLSEXT_ERR_NOACK); - free((char *)conn_ctx->servername); + free(conn_ctx->servername); if ((conn_ctx->servername = strdup(name)) == NULL) goto err; @@ -133,7 +133,7 @@ tls_servername_cb(SSL *ssl, int *al, void *arg) * There is no way to tell libssl that an internal failure occurred. * The only option we have is to return a fatal alert. */ - *al = TLS1_AD_INTERNAL_ERROR; + *al = SSL_AD_INTERNAL_ERROR; return (SSL_TLSEXT_ERR_ALERT_FATAL); } -- cgit 1.4.1