From 09626e4b2a457f977323e5080b5c925cb29b69e8 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 1 Jun 2021 19:49:17 +0000 Subject: [PATCH] Remove unnecessary cast in free. ok jsing --- lib/libtls/tls_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libtls/tls_server.c b/lib/libtls/tls_server.c index a709a2bec92..54d220f25a6 100644 --- a/lib/libtls/tls_server.c +++ b/lib/libtls/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.46 2021/06/01 19:49:17 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; -- 2.20.1