From dc9bf255eeb4d21452227a590486deef78aac4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Tue, 1 Apr 2025 08:43:24 +0200 Subject: [PATCH] core: ovs: fix NULL pointer dereference in ovsdb read timeout callback Fixes: f7d321c6d6ab ('ovsdb: add watchdog for unparsable JSON data in socket') --- src/core/devices/ovs/nm-ovsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/devices/ovs/nm-ovsdb.c b/src/core/devices/ovs/nm-ovsdb.c index d3dda273b..60f620952 100644 --- a/src/core/devices/ovs/nm-ovsdb.c +++ b/src/core/devices/ovs/nm-ovsdb.c @@ -2424,7 +2424,7 @@ again: * content is broken (_json_read_msg() cannot extract any data) and * we disconnect. */ priv->input_timeout_source = - nm_g_timeout_add_seconds_source(5, _ovsdb_read_input_timeout_cb, NULL); + nm_g_timeout_add_seconds_source(5, _ovsdb_read_input_timeout_cb, self); } return; }