HomeClusterLabs Projects

Fix: libservices: ensure completed ops aren't on blocked ops list

Description

Fix: libservices: ensure completed ops aren't on blocked ops list

This refactors removal of a completed operation from the in-flight ops list
into a new internal function services_untrack_op(), which allows the
in-flight ops list and handle_blocked_ops() to be static to services.c.

The new function also ensures the op isn't on the blocked ops list,
which could otherwise result in a use-after-free bug.

Details

Provenance
kgaillotAuthored on Feb 27 2017, 3:17 PM
Parents
rP47f957c747f7: Fix: libcrmcommon: assert if can't generate operation key
Branches
Unknown
Tags
Unknown

Event Timeline