mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
socket-proxy: fix use-after-free
Fixes a bug in 10e41cdddc.
Fixes CID#1609061.
This commit is contained in:
committed by
Luca Boccassi
parent
ba6c955f21
commit
be1f90d97f
@@ -131,10 +131,10 @@ static void context_reset_timer(Context *context) {
|
||||
}
|
||||
|
||||
static void connection_release(Connection *c) {
|
||||
assert(c);
|
||||
Context *context = ASSERT_PTR(ASSERT_PTR(c)->context);
|
||||
|
||||
connection_free(c);
|
||||
context_reset_timer(c->context);
|
||||
context_reset_timer(context);
|
||||
}
|
||||
|
||||
static int connection_create_pipes(Connection *c, int buffer[static 2], size_t *sz) {
|
||||
|
||||
Reference in New Issue
Block a user