about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-10-17 09:00:00 -0500
committerMarco Peereboom <marco@conformal.com>2011-10-17 09:00:00 -0500
commit30821d837385e842a1bbd8770a26581617c47827 (patch)
tree3878e5652c045535324b6db00f5c4ab0371ff974
parentb0213b81c4c14ee384615cea20e4462dc8ed3cf2 (diff)
downloadxombrero-30821d837385e842a1bbd8770a26581617c47827.tar.gz
annotations
-rw-r--r--xxxterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 58d340b..51a83a0 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -3390,7 +3390,7 @@ connect_socket_from_uri(const gchar *uri, const gchar **error_str, char *domain,
 	struct addrinfo		hints, *res = NULL, *ai;
 	int			rv = -1, s = -1, on, error;
 	char			port[8];
-	static gchar		myerror[256];
+	static gchar		myerror[256]; /* this is not thread safe */
 
 	myerror[0] = '\0';
 	*error_str = myerror;
@@ -3477,7 +3477,7 @@ start_tls(const gchar **error_str, int s, gnutls_session_t *gs,
 	gnutls_certificate_credentials_t xcred;
 	gnutls_session_t	gsession;
 	int			rv = 1;
-	static gchar		myerror[1024];
+	static gchar		myerror[1024]; /* this is not thread safe */
 
 	if (gs == NULL || xc == NULL)
 		goto done;
@@ -3643,7 +3643,7 @@ load_compare_cert(const gchar *uri, const gchar **error_str)
 	FILE			*f = NULL;
 	size_t			cert_buf_sz, cert_count;
 	enum cert_trust		rv = CERT_UNTRUSTED;
-	static gchar		serr[80];
+	static gchar		serr[80]; /* this isn't thread safe */
 	gnutls_session_t	gsession;
 	gnutls_x509_crt_t	*certs;
 	gnutls_certificate_credentials_t xcred;