Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bba0f88b
Commit
bba0f88b
authored
Jan 18, 2013
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor svcauth_gss.c cleanup
parent
41ae6e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/auth_gss/svcauth_gss.c
+2
-5
No files found.
net/sunrpc/auth_gss/svcauth_gss.c
View file @
bba0f88b
...
@@ -1591,8 +1591,7 @@ svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp)
...
@@ -1591,8 +1591,7 @@ svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp)
BUG_ON
(
integ_len
%
4
);
BUG_ON
(
integ_len
%
4
);
*
p
++
=
htonl
(
integ_len
);
*
p
++
=
htonl
(
integ_len
);
*
p
++
=
htonl
(
gc
->
gc_seq
);
*
p
++
=
htonl
(
gc
->
gc_seq
);
if
(
xdr_buf_subsegment
(
resbuf
,
&
integ_buf
,
integ_offset
,
if
(
xdr_buf_subsegment
(
resbuf
,
&
integ_buf
,
integ_offset
,
integ_len
))
integ_len
))
BUG
();
BUG
();
if
(
resbuf
->
tail
[
0
].
iov_base
==
NULL
)
{
if
(
resbuf
->
tail
[
0
].
iov_base
==
NULL
)
{
if
(
resbuf
->
head
[
0
].
iov_len
+
RPC_MAX_AUTH_SIZE
>
PAGE_SIZE
)
if
(
resbuf
->
head
[
0
].
iov_len
+
RPC_MAX_AUTH_SIZE
>
PAGE_SIZE
)
...
@@ -1600,10 +1599,8 @@ svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp)
...
@@ -1600,10 +1599,8 @@ svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp)
resbuf
->
tail
[
0
].
iov_base
=
resbuf
->
head
[
0
].
iov_base
resbuf
->
tail
[
0
].
iov_base
=
resbuf
->
head
[
0
].
iov_base
+
resbuf
->
head
[
0
].
iov_len
;
+
resbuf
->
head
[
0
].
iov_len
;
resbuf
->
tail
[
0
].
iov_len
=
0
;
resbuf
->
tail
[
0
].
iov_len
=
0
;
resv
=
&
resbuf
->
tail
[
0
];
}
else
{
resv
=
&
resbuf
->
tail
[
0
];
}
}
resv
=
&
resbuf
->
tail
[
0
];
mic
.
data
=
(
u8
*
)
resv
->
iov_base
+
resv
->
iov_len
+
4
;
mic
.
data
=
(
u8
*
)
resv
->
iov_base
+
resv
->
iov_len
+
4
;
if
(
gss_get_mic
(
gsd
->
rsci
->
mechctx
,
&
integ_buf
,
&
mic
))
if
(
gss_get_mic
(
gsd
->
rsci
->
mechctx
,
&
integ_buf
,
&
mic
))
goto
out_err
;
goto
out_err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment