[X2Go-Commits] [x2goclient] 01/02: src/sshmasterconnection.cpp: error out with a useful error message in case no password has been provided when doing password authentication.

git-admin at x2go.org git-admin at x2go.org
Tue Nov 14 00:07:38 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit 90a8d540cdc6da8bbb1f40b6457a3843794b1386
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Nov 13 22:33:25 2017 +0100

    src/sshmasterconnection.cpp: error out with a useful error message in case no password has been provided when doing password authentication.
---
 debian/changelog            | 2 ++
 src/sshmasterconnection.cpp | 1 +
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8f3b86c..68dbcb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,8 @@ x2goclient (4.1.1.1-0x2go1) UNRELEASED; urgency=medium
       output.
     - res/i18n/x2goclient_*.ts: apply last change to translation files
       directly.
+    - src/sshmasterconnection.cpp: error out with a useful error message in
+      case no password has been provided when doing password authentication.
 
   [ Oleksandr Shneyder ]
   * New upstream version (4.1.1.1):
diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp
index 0cfb5d8..9635aa2 100644
--- a/src/sshmasterconnection.cpp
+++ b/src/sshmasterconnection.cpp
@@ -1286,6 +1286,7 @@ bool SshMasterConnection::userAuthWithPass()
             }
 
             if (keyPhrase.isNull ()) {
+                authErrors << "No password provided.";
                 return (ret);
             }
             else {

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list