diff options
author | Simo Sorce <simo@redhat.com> | 2016-03-10 20:52:43 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-03-17 09:18:26 +0100 |
commit | 600e0429c58081c080cc283a0d4619dff920296f (patch) | |
tree | cdeefebf872f5aa582195591a1babc3efa013868 /src/util/debug.c | |
parent | 84060f52e782b079337ee7a99bb7ad17e8c84fbb (diff) | |
download | sssd-600e0429c58081c080cc283a0d4619dff920296f.tar.gz sssd-600e0429c58081c080cc283a0d4619dff920296f.tar.xz sssd-600e0429c58081c080cc283a0d4619dff920296f.zip |
Responders: Fix client destructor
To close a socket associated to an fd event we must set the close
function of the event and not associate a destructor to a parent context.
Otherwise the destructor will close() the socket before the fd event is
freed, and this may cause invalid calls on a closed file descriptor to
poll/epoll/etc.
Discovered by looking at strace output.
Resolves:
https://fedorahosted.org/sssd/ticket/2973
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util/debug.c')
0 files changed, 0 insertions, 0 deletions