mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
adopt: fix raw protocol binding
This commit is contained in:
parent
a177285b9c
commit
621cdd7c4f
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ rops_adoption_bind_raw_skt(struct lws *wsi, int type, const char *vh_prot_name)
|
|||
wsi->udp = lws_malloc(sizeof(*wsi->udp), "udp struct");
|
||||
#endif
|
||||
|
||||
if (!vh_prot_name)
|
||||
if (vh_prot_name)
|
||||
lws_bind_protocol(wsi, wsi->protocol);
|
||||
else
|
||||
/* this is the only time he will transition */
|
||||
|
|
Loading…
Add table
Reference in a new issue