Skip to content

Commit

Permalink
Fix Kerberos truncation (Issue #5435)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 14, 2018
1 parent fe35d60 commit 6d99354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cups/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ _cupsSetNegotiateAuthString(
*/

int authsize = 10 + /* "Negotiate " */
(int)output_token.length * 4 / 3 + 1 + 1;
(int)((output_token.length * 4 / 3 + 3) & ~3) + 1;
/* Base64 + nul */

httpSetAuthString(http, NULL, NULL);
Expand Down

0 comments on commit 6d99354

Please sign in to comment.