{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1755109519,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"04a2e9d675f05119a4a9e7a113ebf879",
"commit": {"type":"commit",
"time": 1633414202,
"time_ofs": 60,
"oid_tree": { "oid": "3b77750f8fc0dbb5cdb28c2de2cd49c125030be2", "alias": []},
"oid":{ "oid": "919981fba64f45e563efddd833bdd01f63afa0a1", "alias": []},
"msg": "netlink: fix empty route index discovery",
"sig_commit": { "git_time": { "time": 1633414202, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1631603230, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "netlink: fix empty route index discovery\n"
,
"diff": "diff --git a/lib/core-net/route.c b/lib/core-net/route.c\nindex 9b4dbeb..9fdbb78 100644\n--- a/lib/core-net/route.c\n+++ b/lib/core-net/route.c\n@@ -96,11 +96,15 @@ _lws_routing_table_dump(struct lws_context *cx)\n lws_route_uidx_t\n _lws_route_get_uidx(struct lws_context *cx)\n {\n+\tuint8_t ou;\n+\n \tif (!cx-\u003eroute_uidx)\n \t\tcx-\u003eroute_uidx++;\n \n-\twhile (1) {\n-\t\tchar again \u003d 0;\n+\tou \u003d cx-\u003eroute_uidx;\n+\n+\tdo {\n+\t\tuint8_t again \u003d 0;\n \n \t\t/* Anybody in the table already uses the pt's next uidx? */\n \n@@ -113,17 +117,18 @@ _lws_route_get_uidx(struct lws_context *cx)\n \t\t\t\tcx-\u003eroute_uidx++;\n \t\t\t\tif (!cx-\u003eroute_uidx)\n \t\t\t\t\tcx-\u003eroute_uidx++;\n-\t\t\t\tif (again) {\n+\t\t\t\tif (cx-\u003eroute_uidx \u003d\u003d ou) {\n \t\t\t\t\tassert(0); /* we have filled up the 8-bit uidx space? */\n \t\t\t\t\treturn 0;\n \t\t\t\t}\n \t\t\t\tagain \u003d 1;\n+\t\t\t\tbreak;\n \t\t\t}\n \t\t} lws_end_foreach_dll(d);\n \n \t\tif (!again)\n \t\t\treturn cx-\u003eroute_uidx++;\n-\t}\n+\t} while (1);\n }\n \n lws_route_t *\n","s":{"c":1755109519,"u": 1812}}
],"g": 3048,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}