Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
65cc2f05
Commit
65cc2f05
authored
Aug 11, 2016
by
Wenfeng Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: since hd_inflate_commit_indexed() always return 0, remove the
return value check in nghttp2_hd_inflate_hd_nv().
parent
2d8059a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
18 deletions
+6
-18
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+6
-18
No files found.
lib/nghttp2_hd.c
View file @
65cc2f05
...
...
@@ -1677,15 +1677,8 @@ static ssize_t hd_inflate_read(nghttp2_hd_inflater *inflater, nghttp2_buf *buf,
}
/*
* Finalize indexed header representation reception. If header is
* emitted, |*nv_out| is filled with that value and 0 is returned. If
* no header is emitted, 1 is returned.
*
* This function returns either 0 or 1 if it succeeds, or one of the
* following negative error codes:
*
* NGHTTP2_ERR_NOMEM
* Out of memory
* Finalize indexed header representation reception. header is always
* emitted, |*nv_out| is filled with that value and 0 is returned.
*/
static
int
hd_inflate_commit_indexed
(
nghttp2_hd_inflater
*
inflater
,
nghttp2_hd_nv
*
nv_out
)
{
...
...
@@ -1944,16 +1937,11 @@ ssize_t nghttp2_hd_inflate_hd_nv(nghttp2_hd_inflater *inflater,
inflater
->
index
=
inflater
->
left
;
--
inflater
->
index
;
rv
=
hd_inflate_commit_indexed
(
inflater
,
nv_out
);
if
(
rv
<
0
)
{
goto
fail
;
}
hd_inflate_commit_indexed
(
inflater
,
nv_out
);
inflater
->
state
=
NGHTTP2_HD_STATE_OPCODE
;
/* If rv == 1, no header was emitted */
if
(
rv
==
0
)
{
*
inflate_flags
|=
NGHTTP2_HD_INFLATE_EMIT
;
return
(
ssize_t
)(
in
-
first
);
}
*
inflate_flags
|=
NGHTTP2_HD_INFLATE_EMIT
;
return
(
ssize_t
)(
in
-
first
);
}
else
{
inflater
->
index
=
inflater
->
left
;
--
inflater
->
index
;
...
...
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