]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/s_socket.c
remove malloc casts
[thirdparty/openssl.git] / apps / s_socket.c
index 4c440dc50a7902edd12d8cc928db80e726ea8c23..050426a0a48b6e690fbf9e5f02e5c44c2d37d59b 100644 (file)
@@ -562,7 +562,7 @@ static int do_accept(int acc_sock, int *sock, char **host)
         *host = NULL;
         /* return(0); */
     } else {
-        if ((*host = (char *)OPENSSL_malloc(strlen(h1->h_name) + 1)) == NULL) {
+        if ((*host = OPENSSL_malloc(strlen(h1->h_name) + 1)) == NULL) {
             perror("OPENSSL_malloc");
             closesocket(ret);
             return (0);