From: Simo Sorce Date: Thu, 10 Apr 2014 04:52:39 +0000 (-0400) Subject: Fix base64 encoding of tokens X-Git-Tag: v1.0.0~11 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_gssapi.git;a=commitdiff_plain;h=fff9af8f354e4080b3b13bb6b3eb7e033c806bcd 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. --- 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); }