diff options
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 78272185a13d..a885e97dc5f4 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -3119,17 +3119,11 @@ nfsd4_do_encode_secinfo(struct nfsd4_compoundres *resp, | |||
3119 | struct rpcsec_gss_info info; | 3119 | struct rpcsec_gss_info info; |
3120 | 3120 | ||
3121 | if (rpcauth_get_gssinfo(flavs[i].pseudoflavor, &info) == 0) { | 3121 | if (rpcauth_get_gssinfo(flavs[i].pseudoflavor, &info) == 0) { |
3122 | RESERVE_SPACE(4); | 3122 | RESERVE_SPACE(4 + 4 + info.oid.len + 4 + 4); |
3123 | WRITE32(RPC_AUTH_GSS); | 3123 | WRITE32(RPC_AUTH_GSS); |
3124 | ADJUST_ARGS(); | ||
3125 | RESERVE_SPACE(4 + info.oid.len); | ||
3126 | WRITE32(info.oid.len); | 3124 | WRITE32(info.oid.len); |
3127 | WRITEMEM(info.oid.data, info.oid.len); | 3125 | WRITEMEM(info.oid.data, info.oid.len); |
3128 | ADJUST_ARGS(); | ||
3129 | RESERVE_SPACE(4); | ||
3130 | WRITE32(info.qop); | 3126 | WRITE32(info.qop); |
3131 | ADJUST_ARGS(); | ||
3132 | RESERVE_SPACE(4); | ||
3133 | WRITE32(info.service); | 3127 | WRITE32(info.service); |
3134 | ADJUST_ARGS(); | 3128 | ADJUST_ARGS(); |
3135 | } else { | 3129 | } else { |