]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sunrpc/auth_gss/svcauth_gss.c
SUNRPC: Remove xdr_buf_trim()
[linux.git] / net / sunrpc / auth_gss / svcauth_gss.c
index 152790ed309c6f2cb10df426afbf3f9f603025c1..f1aabab4a4c2a8922522f9d741f574854f1d3216 100644 (file)
@@ -896,7 +896,7 @@ unwrap_integ_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct g
        if (svc_getnl(&buf->head[0]) != seq)
                goto out;
        /* trim off the mic and padding at the end before returning */
-       xdr_buf_trim(buf, round_up_to_quad(mic.len) + 4);
+       buf->len -= 4 + round_up_to_quad(mic.len);
        stat = 0;
 out:
        kfree(mic.data);