When the calloc call in debuginfod_begin fails we should skip all
initialization of the client handle.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2021-06-18 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod-client.c (debuginfod_begin): Don't use client if
+ calloc call failed.
+
2021-06-03 Frank Ch. Eigler <fche@redhat.com>
PR27863
client->verbose_fd = STDERR_FILENO;
else
client->verbose_fd = -1;
- }
- // allocate 1 curl multi handle
- client->server_mhandle = curl_multi_init ();
- if (client->server_mhandle == NULL)
- goto out1;
+ // allocate 1 curl multi handle
+ client->server_mhandle = curl_multi_init ();
+ if (client->server_mhandle == NULL)
+ goto out1;
+ }
// extra future initialization