From fff9af8f354e4080b3b13bb6b3eb7e033c806bcd Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 10 Apr 2014 00:52:39 -0400 Subject: [PATCH] Fix base64 encoding of tokens The token was being trunkated as the total length should have been: replen + 10 Just remove this line, apr_base64_encode() already properly terminate the buffer. --- src/mod_auth_gssapi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 0cb548a..2045414 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -268,7 +268,6 @@ done: if (reply) { memcpy(reply, "Negotiate ", 10); apr_base64_encode(&reply[10], output.value, output.length); - reply[replen] = '\0'; apr_table_add(req->err_headers_out, "WWW-Authenticate", reply); } -- 2.1.4