reds: Check reds_init_ssl errors

Now that this function can fail, propagate any error up to the
caller. This allows qemu to fail when an SSL initialization error
occurred.
This commit is contained in:
Christophe Fergeau 2012-09-12 16:10:34 +02:00
parent 1c7fcefe1e
commit 1e5bf67c2b

View File

@ -4021,7 +4021,9 @@ static int do_spice_init(SpiceCoreInterface *core_interface)
goto err;
}
if (reds->secure_listen_socket != -1) {
reds_init_ssl();
if (reds_init_ssl() < 0) {
goto err;
}
}
#if HAVE_SASL
int saslerr;