aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r--net/sunrpc/auth_gss/gss_krb5_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_wrap.c b/net/sunrpc/auth_gss/gss_krb5_wrap.c
index 5040a460f1d9..42560e55d978 100644
--- a/net/sunrpc/auth_gss/gss_krb5_wrap.c
+++ b/net/sunrpc/auth_gss/gss_krb5_wrap.c
@@ -576,8 +576,8 @@ gss_unwrap_kerberos_v2(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf)
576 buf->head[0].iov_len -= GSS_KRB5_TOK_HDR_LEN + headskip; 576 buf->head[0].iov_len -= GSS_KRB5_TOK_HDR_LEN + headskip;
577 buf->len -= GSS_KRB5_TOK_HDR_LEN + headskip; 577 buf->len -= GSS_KRB5_TOK_HDR_LEN + headskip;
578 578
579 /* Trim off the checksum blob */ 579 /* Trim off the trailing "extra count" and checksum blob */
580 xdr_buf_trim(buf, GSS_KRB5_TOK_HDR_LEN + tailskip); 580 xdr_buf_trim(buf, ec + GSS_KRB5_TOK_HDR_LEN + tailskip);
581 return GSS_S_COMPLETE; 581 return GSS_S_COMPLETE;
582} 582}
583 583