mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-13 22:03:38 +00:00
Fix crash with no transport
This commit is contained in:
parent
d5b7d299fe
commit
7eae7ea1c9
@ -781,7 +781,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
DEBUG_LOG("Remote host is %s and transport %s user %s\n", host, transport ? transport : "", user ? user : "");
|
||||
|
||||
if (strcasecmp(transport, "ssh") == 0 && !direct)
|
||||
if (transport && strcasecmp(transport, "ssh") == 0 && !direct)
|
||||
fd = viewer_open_tunnel_ssh(host, port, user, vncport);
|
||||
|
||||
vnc = vnc_display_new();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user