From 97f4b6906bdf56295b533f4bdd7862ef2ae6d3bb Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 19 Jul 2018 06:12:31 +0800 Subject: [PATCH] client: use lws_strdup for client_hostname_copy https://github.com/warmcat/libwebsockets/issues/1343 --- lib/roles/http/client/client-handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/http/client/client-handshake.c b/lib/roles/http/client/client-handshake.c index edceda64c..70cb54719 100644 --- a/lib/roles/http/client/client-handshake.c +++ b/lib/roles/http/client/client-handshake.c @@ -162,7 +162,7 @@ create_new_conn: if (!wsi->client_hostname_copy) wsi->client_hostname_copy = - strdup(lws_hdr_simple_ptr(wsi, + lws_strdup(lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS)); /*