1
0
Fork 0
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:
Andy Green 2018-05-21 14:43:40 +08:00
parent a177285b9c
commit 621cdd7c4f

View file

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