Commit 2c50d73b authored by Olivier Crête's avatar Olivier Crête

agent: Don't crash if recv cancelled without a GError

parent dcb0d647
......@@ -4279,7 +4279,10 @@ static gboolean
nice_agent_recv_cancelled_cb (GCancellable *cancellable, gpointer user_data)
GError **error = user_data;
return !g_cancellable_set_error_if_cancelled (cancellable, error);
if (error && *error)
g_cancellable_set_error_if_cancelled (cancellable, error);
static gint
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment