Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
gtk-vnc2
gtk-vnc-bsc1188292.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gtk-vnc-bsc1188292.patch of Package gtk-vnc2
From a51e6a6973e9bdfcba0e52d3f9ee37686cd95db9 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" <berrange@redhat.com> Date: Tue, 11 Apr 2017 10:47:56 +0100 Subject: [PATCH] Fix crash when no error is set after connection failure Signed-off-by: Daniel P. Berrange <berrange@redhat.com> --- src/vncconnection.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vncconnection.c b/src/vncconnection.c index 8cec1af..e5b43a0 100644 --- a/src/vncconnection.c +++ b/src/vncconnection.c @@ -5428,7 +5428,7 @@ static gboolean vnc_connection_open_addr_internal(VncConnection *conn) return TRUE; } vnc_connection_set_error(conn, "Unable to connect: %s", - conn_error ? conn_error->message : ""); + conn_error ? conn_error->message : "Unknown problem"); g_clear_error(&conn_error); return FALSE; } @@ -5466,8 +5466,9 @@ static gboolean vnc_connection_open_host_internal(VncConnection *conn) } g_object_unref(enumerator); if (!sock) { - vnc_connection_set_error(conn, "Unable to connect: %s", - conn_error->message); + vnc_connection_set_error(conn, "Unable to connect to %s:%s: %s", + priv->host, priv->port, + conn_error ? conn_error->message : "Unknown problem"); } g_clear_error(&conn_error); if (sock) { -- 2.32.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor