diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-09-12 16:10:34 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-09-20 16:40:54 +0200 |
commit | 1e5bf67c2bc417d16308fc3d51f028c25b8544f6 (patch) | |
tree | 66c22e28e4da82f37e8aae5a2163850db66c6337 | |
parent | 1c7fcefe1ebe0d8dfffc5a0b5d5d9388c167994c (diff) | |
download | spice-1e5bf67c2bc417d16308fc3d51f028c25b8544f6.tar.gz spice-1e5bf67c2bc417d16308fc3d51f028c25b8544f6.tar.xz spice-1e5bf67c2bc417d16308fc3d51f028c25b8544f6.zip |
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.
-rw-r--r-- | server/reds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index 025c50ca..1ff25f81 100644 --- a/server/reds.c +++ b/server/reds.c @@ -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; |