Go to file
Matthias Schiffer e4bd7a4549
autoupdater: uclient: fix segfault after interrupted HTTP request
uloop_run() may finish without ever reaching request_done(), for example
when the main loop is interrupted by a signal. In this case,
uclient_disconnect() was never called, leaving a number of callbacks
like timeout handlers registered in the uloop context.

When the main loop was later resumed in a subsequent HTTP request without
completely reinitializing the uloop context, these timeout handlers could
still fire, even though the old uclient context had already been freed,
resulting in a use-after-free.

To avoid this, move the uclient_disconnect() call out of request_done()
to ensure that it is always called before uclient_free().
2023-02-24 21:00:02 +01:00
admin autoupdater: uclient: fix segfault after interrupted HTTP request 2023-02-24 21:00:02 +01:00
libs lua-jsonc: add host build support 2021-06-09 21:30:39 +02:00
net sse-multiplex: fix pipe FD leaks 2022-07-03 16:19:35 +02:00
utils Merge pull request #212 from TDT-AG/pr/20190211-micrond 2019-11-20 14:02:14 +01:00
.gitignore Add .gitignore 2013-09-28 19:45:19 +02:00