Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54ec3d46 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Trond Myklebust
Browse files

gss_krb5: Don't expect blocksize to always be 8 when calculating padding

parent 7561042f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -12,10 +12,7 @@
static inline int
gss_krb5_padding(int blocksize, int length)
{
	/* Most of the code is block-size independent but currently we
	 * use only 8: */
	BUG_ON(blocksize != 8);
	return 8 - (length & 7);
	return blocksize - (length % blocksize);
}

static inline void