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 2017/01/11 23:11:33 UTC

[1/3] incubator-guacamole-server git commit: GUACAMOLE-157: Initialize SSH SSL lock array to NULL and test for NULL-ness before freeing.

Repository: incubator-guacamole-server
Updated Branches:
  refs/heads/master 6d4b7a94f -> 0611bd1c4


GUACAMOLE-157: Initialize SSH SSL lock array to NULL and test for NULL-ness before freeing.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/6c05dc02
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/6c05dc02
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/6c05dc02

Branch: refs/heads/master
Commit: 6c05dc026e300a8c73fe7b7ae204026f2d596e86
Parents: 6d4b7a9
Author: Frode Langelo <fr...@apache.org>
Authored: Wed Jan 11 22:40:34 2017 +0000
Committer: Frode Langelo <fr...@apache.org>
Committed: Wed Jan 11 22:40:34 2017 +0000

----------------------------------------------------------------------
 src/common-ssh/guac_ssh.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/6c05dc02/src/common-ssh/guac_ssh.c
----------------------------------------------------------------------
diff --git a/src/common-ssh/guac_ssh.c b/src/common-ssh/guac_ssh.c
index 2c59e1d..488eea2 100644
--- a/src/common-ssh/guac_ssh.c
+++ b/src/common-ssh/guac_ssh.c
@@ -48,7 +48,7 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
 /**
  * Array of mutexes, used by OpenSSL.
  */
-static pthread_mutex_t* guac_common_ssh_openssl_locks;
+static pthread_mutex_t* guac_common_ssh_openssl_locks = NULL;
 
 /**
  * Called by OpenSSL when locking or unlocking the Nth mutex.
@@ -103,7 +103,7 @@ static void guac_common_ssh_openssl_init_locks(int count) {
 
     /* Allocate required number of locks */
     guac_common_ssh_openssl_locks =
-        malloc(sizeof(pthread_mutex_t) * CRYPTO_num_locks());
+        malloc(sizeof(pthread_mutex_t) * count);
 
     /* Initialize each lock */
     for (i=0; i < count; i++)
@@ -121,6 +121,10 @@ static void guac_common_ssh_openssl_free_locks(int count) {
 
     int i;
 
+    /* SSL lock array was not initialized */
+    if (guac_common_ssh_openssl_locks == NULL)
+        return;
+
     /* Free all locks */
     for (i=0; i < count; i++)
         pthread_mutex_destroy(&(guac_common_ssh_openssl_locks[i]));


[2/3] incubator-guacamole-server git commit: GUACAMOLE-157: Merge fix for segfault upon VNC disconnect.

Posted by mj...@apache.org.
GUACAMOLE-157: Merge fix for segfault upon VNC disconnect.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/cf9aeef8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/cf9aeef8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/cf9aeef8

Branch: refs/heads/master
Commit: cf9aeef83b4499ac54ae9a22ab222a9e867e91e5
Parents: 1fef1f4 6c05dc0
Author: Michael Jumper <mj...@apache.org>
Authored: Wed Jan 11 15:09:15 2017 -0800
Committer: Michael Jumper <mj...@apache.org>
Committed: Wed Jan 11 15:09:15 2017 -0800

----------------------------------------------------------------------
 src/common-ssh/guac_ssh.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



[3/3] incubator-guacamole-server git commit: Merge 0.9.11-incubating changes back to master.

Posted by mj...@apache.org.
Merge 0.9.11-incubating changes back to master.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/0611bd1c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/0611bd1c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/0611bd1c

Branch: refs/heads/master
Commit: 0611bd1c456df3e8452870a1bb029957dc7eed14
Parents: 6d4b7a9 cf9aeef
Author: Michael Jumper <mj...@apache.org>
Authored: Wed Jan 11 15:11:11 2017 -0800
Committer: Michael Jumper <mj...@apache.org>
Committed: Wed Jan 11 15:11:11 2017 -0800

----------------------------------------------------------------------
 src/common-ssh/guac_ssh.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------