timeout also fixup for0middle guy deletion case
authorAndy Green <andy.green@linaro.org>
Tue, 19 Jan 2016 15:11:39 +0000 (23:11 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 19 Jan 2016 15:11:39 +0000 (23:11 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c
test-server/fuzxy.c

index 23eba4d..22c8c06 100644 (file)
@@ -75,7 +75,10 @@ lws_remove_from_timeout_list(struct lws *wsi)
        if (!wsi->timeout_list_prev)
                return;
 
        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 = wsi->timeout_list;
+
        wsi->timeout_list_prev = NULL;
        wsi->timeout_list = NULL;
 }
        wsi->timeout_list_prev = NULL;
        wsi->timeout_list = NULL;
 }
index 8c77df9..4fd292c 100644 (file)
@@ -277,8 +277,8 @@ struct fuzxy_rule {
 };
 
 struct fuzxy_rule r = {
 };
 
 struct fuzxy_rule r = {
-               { "Host:", "\x0d", "\xe0\x00\x0d" },
-               { 5, 1, 3 },
+               { "G", "E", "\xe0\x41\x42" },
+               { 1, 1, 3 },
                65536
 };
 
                65536
 };