diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-10 00:52:39 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-04-12 18:18:38 -0400 |
commit | fff9af8f354e4080b3b13bb6b3eb7e033c806bcd (patch) | |
tree | e6567670184e5c9dd3bcf42854ab306cdbeb1a92 | |
parent | 3e02602bd7ed79fc0ec54256322603f30ee1834f (diff) | |
download | mod_auth_gssapi-fff9af8f354e4080b3b13bb6b3eb7e033c806bcd.tar.gz mod_auth_gssapi-fff9af8f354e4080b3b13bb6b3eb7e033c806bcd.tar.xz mod_auth_gssapi-fff9af8f354e4080b3b13bb6b3eb7e033c806bcd.zip |
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.
-rw-r--r-- | src/mod_auth_gssapi.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |