From: tb Date: Tue, 1 Jun 2021 19:49:17 +0000 (+0000) Subject: Remove unnecessary cast in free. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=09626e4b2a457f977323e5080b5c925cb29b69e8;p=openbsd Remove unnecessary cast in free. ok jsing --- 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;