[gnome-remote-desktop] session-vnc: Do not crash, when password is not set
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-vnc: Do not crash, when password is not set
- Date: Tue, 2 Aug 2022 15:16:00 +0000 (UTC)
commit cd95260798a2968884e29e9b22a846781dcce0b6
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Tue Aug 2 06:27:12 2022 +0200
session-vnc: Do not crash, when password is not set
src/grd-session-vnc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/grd-session-vnc.c b/src/grd-session-vnc.c
index ed4a4289..d3107060 100644
--- a/src/grd-session-vnc.c
+++ b/src/grd-session-vnc.c
@@ -557,7 +557,11 @@ check_rfb_password (rfbClientPtr rfb_client,
password = grd_settings_get_vnc_password (settings, &error);
if (!password)
{
- g_warning ("Couldn't retrieve VNC password: %s", error->message);
+ if (error)
+ g_warning ("[VNC] Couldn't retrieve VNC password: %s", error->message);
+ else
+ g_message ("[VNC] Password is not set, denying client");
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]