timeout also fixup for0middle guy deletion case

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2016-01-19 23:11:39 +08:00
parent 72dba09932
commit 05ae649b66
2 changed files with 5 additions and 2 deletions

View file

@ -75,7 +75,10 @@ lws_remove_from_timeout_list(struct lws *wsi)
if (!wsi->timeout_list_prev)
return;
if (wsi->timeout_list)
wsi->timeout_list->timeout_list_prev = wsi->timeout_list_prev;
*wsi->timeout_list_prev = wsi->timeout_list;
wsi->timeout_list_prev = NULL;
wsi->timeout_list = NULL;
}

View file

@ -277,8 +277,8 @@ struct fuzxy_rule {
};
struct fuzxy_rule r = {
{ "Host:", "\x0d", "\xe0\x00\x0d" },
{ 5, 1, 3 },
{ "G", "E", "\xe0\x41\x42" },
{ 1, 1, 3 },
65536
};