[gnome-remote-desktop] session-rdp: Do not crash, when credentials are not set
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Do not crash, when credentials are not set
- Date: Tue, 2 Aug 2022 15:16:00 +0000 (UTC)
commit 1d52df54e32e830894d93ebb2e4e9741cea073bc
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Tue Aug 2 06:31:52 2022 +0200
session-rdp: Do not crash, when credentials are not set
src/grd-session-rdp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 69f8ee3b..2d9dac3a 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -2359,7 +2359,11 @@ grd_session_rdp_new (GrdRdpServer *rdp_server,
&username, &password,
&error))
{
- g_warning ("Couldn't retrieve RDP credentials: %s", error->message);
+ if (error)
+ g_warning ("[RDP] Couldn't retrieve RDP credentials: %s", error->message);
+ else
+ g_message ("[RDP] Credentials are not set, denying client");
+
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]