Skip to content

Commit fff9af8

Browse files
committed
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.
1 parent 3e02602 commit fff9af8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/mod_auth_gssapi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ static int mag_auth(request_rec *req)
268268
if (reply) {
269269
memcpy(reply, "Negotiate ", 10);
270270
apr_base64_encode(&reply[10], output.value, output.length);
271-
reply[replen] = '\0';
272271
apr_table_add(req->err_headers_out,
273272
"WWW-Authenticate", reply);
274273
}

0 commit comments

Comments
 (0)