mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
gss_krb5: Don't expect blocksize to always be 8 when calculating padding
Signed-off-by: Steve Dickson <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
7561042fb7
commit
54ec3d462f
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue