diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-10-14 22:33:10 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-14 22:35:45 +0200 |
commit | e4e513f43a8bdd9fe50bdd95a7fd213bca2f81b0 (patch) | |
tree | 97439194e10670fda309aea4ae699a4cfa7a9d43 /guile | |
parent | db3f46aeca90f6dce42592dd723a15f988264852 (diff) | |
download | gnutls-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.c | 2 |
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)) |