[Spice-devel] [PATCH 4/7] reds: Check reds_init_ssl errors
Christophe Fergeau
cfergeau at redhat.com
Wed Sep 12 07:17:58 PDT 2012
Now that this function can fail, propagate any error up to the
caller. This allows qemu to fail when an SSL initialization error
occurred.
---
server/reds.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/reds.c b/server/reds.c
index 0cd3f40..983ca0f 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3973,7 +3973,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;
--
1.7.11.4
More information about the Spice-devel
mailing list