Commit 3dd90df9 authored by Jeremy White's avatar Jeremy White

Protect against a memory allocation failure; for Coverity.

parent c98134bd
......@@ -155,6 +155,9 @@ int options_handle_ssl(options_t *options, const char *spec)
int i = 0;
int rc = 0;
if (!in)
return X11SPICE_ERR_MALLOC;
for (p = strtok_r(in, ",", &save); p; p = strtok_r(NULL, ",", &save), i++) {
if (strlen(p) == 0)
continue;
......
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