Blame SOURCES/0004-sasl-Emit-vnc-auth-failure-signal-on-SASL-auth-failu.patch

d146c8
From 9cadf0ab5071d14066af233a11f994b166454267 Mon Sep 17 00:00:00 2001
d146c8
From: Christophe Fergeau <cfergeau@redhat.com>
d146c8
Date: Wed, 9 Jan 2019 14:01:23 +0100
d146c8
Subject: [PATCH] sasl: Emit vnc-auth-failure signal on SASL auth failures
d146c8
d146c8
When the SASL username or password are wrong, at the moment client
d146c8
application will not get any specific notification for it, they will
d146c8
just know that the remote connection was closed because of an error.
d146c8
d146c8
This commit adds the emission of the vnc-auth-failure signal when
d146c8
vnc_connection_perform_auth_sasl() fails.
d146c8
d146c8
https://bugzilla.redhat.com/show_bug.cgi?id=1456175
d146c8
d146c8
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
d146c8
(cherry picked from commit 3f4f79ffbf74f31ae65055c03a8eb523ac631422)
d146c8
Resolves: rhbz#1688275
d146c8
---
d146c8
 src/vncconnection.c | 1 +
d146c8
 1 file changed, 1 insertion(+)
d146c8
d146c8
diff --git a/src/vncconnection.c b/src/vncconnection.c
d146c8
index 58455df..aceb31d 100644
d146c8
--- a/src/vncconnection.c
d146c8
+++ b/src/vncconnection.c
d146c8
@@ -4419,6 +4419,7 @@ static gboolean vnc_connection_perform_auth_sasl(VncConnection *conn)
d146c8
  error:
d146c8
     if (saslconn)
d146c8
         sasl_dispose(&saslconn);
d146c8
+    vnc_connection_auth_failure(conn, "Unknown authentication failure");
d146c8
     return FALSE;
d146c8
 }
d146c8
 #endif /* HAVE_SASL */