bind protocol: fix for NULL names
This commit is contained in:
parent
4adf590e71
commit
b4b3da06a1
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ lws_bind_protocol(struct lws *wsi, const struct lws_protocols *p)
|
|||
vpo = vp;
|
||||
|
||||
while (n--) {
|
||||
if (!strcmp(p->name, vp->name)) {
|
||||
if (p->name && vp->name && !strcmp(p->name, vp->name)) {
|
||||
hit = 1;
|
||||
lws_same_vh_protocol_insert(wsi, vp - vpo);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue