Turns out, the way that glib implements g_steal_pointer() is not
compatible with function callbacks. And that's what my recent
patch did in virNetSocketEventFree(). Revert that part.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/rpc/virnetsocket.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
index 5675c0769d..b1f47636d1 100644
--- a/src/rpc/virnetsocket.c
+++ b/src/rpc/virnetsocket.c
@@ -2156,9 +2156,10 @@ static void virNetSocketEventFree(void *opaque)
void *eopaque;
virObjectLock(sock);
- ff = g_steal_pointer(&sock->ff);
+ ff = sock->ff;
eopaque = g_steal_pointer(&sock->opaque);
sock->func = NULL;
+ sock->ff = NULL;
virObjectUnlock(sock);
if (ff)
--
2.26.2