Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
virt-viewer
virtview-git-transport-segv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtview-git-transport-segv.patch of Package virt-viewer
Subject: Don't SIGSEGV if no transport is used. From: Michal Privoznik mprivozn@redhat.com Wed Nov 14 15:20:58 2012 +0100 Date: Wed Nov 14 15:20:58 2012 +0100: Git: 9983fe74dd7eae1fac17bafa31ae44995ce28769 One of previous commits (74b1b62510d939) allowed us to connect to localhost directly if ssh transport was used. However, if there's not transport, we SIGSEGV'ed as g_str_equal doesn't like NULL as one of arguments. Change this to g_strcmp0 which does the same service but is more friendly to NULL arguments. Index: virt-viewer-0.5.4/src/virt-viewer.c =================================================================== --- virt-viewer-0.5.4.orig/src/virt-viewer.c +++ virt-viewer-0.5.4/src/virt-viewer.c @@ -376,7 +376,7 @@ virt_viewer_extract_connect_info(VirtVie */ if (virt_viewer_replace_host(ghost)) { gchar *replacement_host = NULL; - if (g_str_equal(transport, "ssh")) { + if (g_strcmp0(transport, "ssh") == 0) { replacement_host = g_strdup("localhost"); } else { replacement_host = g_strdup(host);
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