Commit ef0b4177 authored by Michael Catanzaro's avatar Michael Catanzaro

sync: don't crash when message body is empty

I started getting crashes here after I uninstalled glib-networking in my
jhbuild environment.
parent 7a4e510e
......@@ -919,6 +919,11 @@ get_signed_certificate_cb (SoupSession *session,
const char *message = NULL;
const char *certificate = NULL;
if (!msg->response_body || !msg->response_body->data) {
g_warning ("No response body");
goto out_error;
node = json_from_string (msg->response_body->data, &error);
if (error) {
g_warning ("Response is not a valid JSON: %s", error->message);
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