File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -397,23 +397,19 @@ static int decode_cb_sequence4resok(struct xdr_stream *xdr,
397
397
struct nfsd4_callback * cb )
398
398
{
399
399
struct nfsd4_session * session = cb -> cb_clp -> cl_cb_session ;
400
- struct nfs4_sessionid id ;
401
- int status ;
400
+ int status = - ESERVERFAULT ;
402
401
__be32 * p ;
403
402
u32 dummy ;
404
403
405
- status = - ESERVERFAULT ;
406
-
407
404
/*
408
405
* If the server returns different values for sessionID, slotID or
409
406
* sequence number, the server is looney tunes.
410
407
*/
411
408
p = xdr_inline_decode (xdr , NFS4_MAX_SESSIONID_LEN + 4 + 4 + 4 + 4 );
412
409
if (unlikely (p == NULL ))
413
410
goto out_overflow ;
414
- memcpy (id .data , p , NFS4_MAX_SESSIONID_LEN );
415
- if (memcmp (id .data , session -> se_sessionid .data ,
416
- NFS4_MAX_SESSIONID_LEN ) != 0 ) {
411
+
412
+ if (memcmp (p , session -> se_sessionid .data , NFS4_MAX_SESSIONID_LEN )) {
417
413
dprintk ("NFS: %s Invalid session id\n" , __func__ );
418
414
goto out ;
419
415
}
You can’t perform that action at this time.
0 commit comments