diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-10-14 23:09:07 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-14 23:09:07 +0200 |
commit | 51861587c670c390b3420f0da6a86111b386f750 (patch) | |
tree | 8fac54c665fb467ce9d972d5a79b64c406cd2a6a /gnu | |
parent | 11c38cbe0dab636e5ae8de71a9a05dea7de6bb1f (diff) | |
download | patches-51861587c670c390b3420f0da6a86111b386f750.tar patches-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')
-rw-r--r-- | gnu/packages/gnutls.scm | 3 | ||||
-rw-r--r-- | gnu/packages/patches/gnutls-server-name-fix.patch | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/gnutls.scm b/gnu/packages/gnutls.scm index c7f379cc07..3e4fa631d9 100644 --- a/gnu/packages/gnutls.scm +++ b/gnu/packages/gnutls.scm @@ -74,7 +74,8 @@ specifications.") "/gnutls-" version ".tar.xz")) (sha256 (base32 - "1krx33ab2ijwfz71f1ba8labxfsic7jhlhv6rvjsyw566jj9a3d2")))) + "1krx33ab2ijwfz71f1ba8labxfsic7jhlhv6rvjsyw566jj9a3d2")) + (patches (list (search-patch "gnutls-server-name-fix.patch"))))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) 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)) |