network/queue: increase the reference counter of the request before processing it
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 04:50:23 +0000 (13:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 14:25:32 +0000 (23:25 +0900)
commite30dc59c2e2b87f5bbfaffd2e98de5caf3b18c28
tree277bbfa6ad3f30593c8f5e02d134a748f2f3d63e
parentc5ff54c40ff416c9fff08af906f9c26881b6acaa
network/queue: increase the reference counter of the request before processing it

To prevent the request freed in req->process().

This also makes a request that is not requested by a link detached on failure.
Otherwise, the request may periodically processed and failed forever.
src/network/networkd-queue.c