summaryrefslogtreecommitdiff
path: root/lib/libtls
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-06-01 19:49:18 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-06-01 19:49:18 +0000
commit33ab4bfaaccf0e0bc4d8460e80868901bb200a00 (patch)
tree4f79b4b0deb72840f7671d08028ab37b5eec2298 /lib/libtls
parent8577b10f1b2943b1d657a39d89dd024bb1e21954 (diff)
Remove unnecessary cast in free.
ok jsing
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/tls_server.c4
1 files 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 <jsing@openbsd.org>
*
@@ -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;