summaryrefslogtreecommitdiff
path: root/guile
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-10-14 22:33:10 +0200
committerLudovic Courtès <ludo@gnu.org>2014-10-14 22:35:45 +0200
commite4e513f43a8bdd9fe50bdd95a7fd213bca2f81b0 (patch)
tree97439194e10670fda309aea4ae699a4cfa7a9d43 /guile
parentdb3f46aeca90f6dce42592dd723a15f988264852 (diff)
downloadgnutls-e4e513f43a8bdd9fe50bdd95a7fd213bca2f81b0.tar.gz
guile: Remove trailing zero in 'gnutls_server_name_set' call.
In GnuTLS 3.2.19 (and possibly 3.3.9 and 3.1.17), 'set-session-server-name!' would pass a trailing nul character on the wire after the server name, which would thus be rejected by servers.
Diffstat (limited to 'guile')
-rw-r--r--guile/src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/guile/src/core.c b/guile/src/core.c
index 82fd573432..2778205fe6 100644
--- a/guile/src/core.c
+++ b/guile/src/core.c
@@ -719,7 +719,7 @@ SCM_DEFINE (scm_gnutls_set_session_server_name_x, "set-session-server-name!",
c_name = scm_to_locale_string (name);
err = gnutls_server_name_set (c_session, c_type, c_name,
- strlen (c_name) + 1);
+ strlen (c_name));
free (c_name);
if (EXPECT_FALSE (err != GNUTLS_E_SUCCESS))