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:
parent
0222cd25b0
commit
97f4b6906b
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue