[sssd PR#5828][opened] sbus: maintain correct refcount before sending a reply
by pbrezina
URL: https://github.com/SSSD/sssd/pull/5828
Author: pbrezina
Title: #5828: sbus: maintain correct refcount before sending a reply
Action: opened
PR body:
"""
`sbus_reply` decreases the refcount of `@reply`. This usuall means that
refcount drops to zero and the message is freed. However, under
special circumstances the refcount is increased inside libdbus,
the refcount will be 1 when we leave the function and we drop it
to zero in `talloc_free(state)` later in this function. This will
leave an invalid message to be send inside dbus connection and
eventually crash.
Increasing the refcount here makes sure that the refcount is always
correct.
Resolves: https://github.com/SSSD/sssd/issues/5672
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5828/head:pr5828
git checkout pr5828
1 year, 4 months