1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client: use lws_strdup for client_hostname_copy

https://github.com/warmcat/libwebsockets/issues/1343
This commit is contained in:
Andy Green 2018-07-19 06:12:31 +08:00
parent 0222cd25b0
commit 97f4b6906b

View file

@ -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));
/*