Subject: [PATCH] Fixes occasional segfault in lws_chage_pollfd
authorOctav Zlatior <octav.zlatior@theobroma-systems.com>
Fri, 12 Dec 2014 16:33:27 +0000 (17:33 +0100)
committerAndy Green <andy.green@linaro.org>
Sat, 13 Dec 2014 04:17:59 +0000 (12:17 +0800)
commitd4dd69a254ce6c0338891af41fea4b92db06f4e9
tree03afe2bd5b47d7dabfdb3a0070e90f587b756410
parentf48ddd2a55e3e1c6bb360f8e6a290a7f1ba4d17b
Subject: [PATCH] Fixes occasional segfault in lws_chage_pollfd

* so it happens that sometimes lws_change_pollfd is called with
  bad or incomplete data structures, mainly the context pointer
  obtained from wsi->protocol is null or wsi->position_in_fds_table
  is -1; checks have been added to avoid this condition
lib/pollfd.c