From 621cdd7c4f2139f38aeb57e692950fee7bd6ff4b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 21 May 2018 14:43:40 +0800 Subject: [PATCH] adopt: fix raw protocol binding --- lib/roles/raw-skt/ops-raw-skt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */