[gnome-remote-desktop/gnome-42] 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/gnome-42] session-vnc: Do not crash, when password is not set
- Date: Tue, 2 Aug 2022 15:49:18 +0000 (UTC)
commit 22e6185344c07c608eb66fbfa848d5bb63051503
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 fbc66a41..f5a17b28 100644
--- a/src/grd-session-vnc.c
+++ b/src/grd-session-vnc.c
@@ -518,7 +518,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]