core: ovs: fix NULL pointer dereference in ovsdb read timeout callback

Fixes: f7d321c6d6 ('ovsdb: add watchdog for unparsable JSON data in socket')
This commit is contained in:
Íñigo Huguet 2025-04-01 08:43:24 +02:00 committed by Íñigo Huguet
parent b62a0ae7b3
commit dc9bf255ee

View file

@ -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;
}