diff --git a/lib/roles/raw-skt/ops-raw-skt.c b/lib/roles/raw-skt/ops-raw-skt.c index 2dbd3b2f6..b22f5e56c 100644 --- a/lib/roles/raw-skt/ops-raw-skt.c +++ b/lib/roles/raw-skt/ops-raw-skt.c @@ -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 */