You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2018/06/26 00:30:49 UTC
[15/22] guacamole-server git commit: GUACAMOLE-527: Fix issue with
null host_key variable.
GUACAMOLE-527: Fix issue with null host_key variable.
Project: http://git-wip-us.apache.org/repos/asf/guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-server/commit/c080569c
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-server/tree/c080569c
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-server/diff/c080569c
Branch: refs/heads/master
Commit: c080569cacc6c3c31d339e234e6e69966b696397
Parents: 2f0c6dc
Author: Nick Couchman <vn...@apache.org>
Authored: Thu Apr 5 11:28:32 2018 -0400
Committer: Nick Couchman <ni...@cotyinc.com>
Committed: Mon Jun 25 08:31:37 2018 -0400
----------------------------------------------------------------------
src/common-ssh/ssh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/guacamole-server/blob/c080569c/src/common-ssh/ssh.c
----------------------------------------------------------------------
diff --git a/src/common-ssh/ssh.c b/src/common-ssh/ssh.c
index ee60ccf..01d5000 100644
--- a/src/common-ssh/ssh.c
+++ b/src/common-ssh/ssh.c
@@ -520,7 +520,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client,
libssh2_knownhost_readfile(ssh_known_hosts, known_hosts, LIBSSH2_KNOWNHOST_FILE_OPENSSH);
/* Add host key provided from settings */
- if (strcmp(host_key, "") > 0) {
+ if (host_key && strcmp(host_key, "") > 0) {
if (libssh2_knownhost_addc(ssh_known_hosts, hostname, NULL, host_key, strlen(host_key),
NULL, 0, LIBSSH2_KNOWNHOST_TYPE_PLAIN|LIBSSH2_KNOWNHOST_KEYENC_BASE64|