summary refs log tree commit diff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-10-14 23:09:07 +0200
committerLudovic Courtès <ludo@gnu.org>2014-10-14 23:09:07 +0200
commit51861587c670c390b3420f0da6a86111b386f750 (patch)
tree8fac54c665fb467ce9d972d5a79b64c406cd2a6a /gnu/packages/patches
parent11c38cbe0dab636e5ae8de71a9a05dea7de6bb1f (diff)
downloadguix-51861587c670c390b3420f0da6a86111b386f750.tar.gz
gnu: gnutls: Patch bug in 'set-session-server-name!'.
* gnu/packages/patches/gnutls-server-name-fix.patch: New file.
* gnu/packages/gnutls.scm (gnutls)[source]: Use it.
* gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/gnutls-server-name-fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/patches/gnutls-server-name-fix.patch b/gnu/packages/patches/gnutls-server-name-fix.patch
new file mode 100644
index 0000000000..01f0b761e0
--- /dev/null
+++ b/gnu/packages/patches/gnutls-server-name-fix.patch
@@ -0,0 +1,17 @@
+Fix a typo introduced in the first series implementing
+'set-session-server-name!' whereby the trailing nul character would
+be passed on the wire, thereby breaking connections.
+
+diff --git a/guile/src/core.c b/guile/src/core.c
+index 82fd573..2778205 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))