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
4fe056d2
Commit
4fe056d2
authored
Aug 28, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp2_hd.c: Use rv != 0 instead of rv < 0
parent
f0ef6e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+5
-5
No files found.
lib/nghttp2_hd.c
View file @
4fe056d2
...
...
@@ -380,7 +380,7 @@ static nghttp2_hd_entry* add_hd_table_incremental(nghttp2_hd_context *context,
NGHTTP2_HD_FLAG_NAME_ALLOC
|
NGHTTP2_HD_FLAG_VALUE_ALLOC
,
nv
->
name
,
nv
->
namelen
,
nv
->
value
,
nv
->
valuelen
);
if
(
rv
<
0
)
{
if
(
rv
!=
0
)
{
return
NULL
;
}
context
->
hd_table
[
context
->
hd_tablelen
++
]
=
new_ent
;
...
...
@@ -467,7 +467,7 @@ static nghttp2_hd_entry* add_hd_table_subst(nghttp2_hd_context *context,
NGHTTP2_HD_FLAG_NAME_ALLOC
|
NGHTTP2_HD_FLAG_VALUE_ALLOC
,
nv
->
name
,
nv
->
namelen
,
nv
->
value
,
nv
->
valuelen
);
if
(
rv
<
0
)
{
if
(
rv
!=
0
)
{
return
NULL
;
}
context
->
hd_table
[
new_ent
->
index
]
=
new_ent
;
...
...
@@ -827,7 +827,7 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
}
ent
->
flags
^=
NGHTTP2_HD_FLAG_REFSET
;
rv
=
emit_indexed_block
(
buf_ptr
,
buflen_ptr
,
&
offset
,
ent
->
index
);
if
(
rv
<
0
)
{
if
(
rv
!=
0
)
{
goto
fail
;
}
}
...
...
@@ -896,7 +896,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_context *inflater,
ent
->
flags
^=
NGHTTP2_HD_FLAG_REFSET
;
if
(
ent
->
flags
&
NGHTTP2_HD_FLAG_REFSET
)
{
rv
=
emit_indexed_header
(
inflater
,
&
nva_out
,
ent
);
if
(
rv
<
0
)
{
if
(
rv
!=
0
)
{
goto
fail
;
}
}
...
...
@@ -1019,7 +1019,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_context *inflater,
if
((
ent
->
flags
&
NGHTTP2_HD_FLAG_REFSET
)
&&
(
ent
->
flags
&
NGHTTP2_HD_FLAG_EMIT
)
==
0
)
{
rv
=
emit_indexed_header
(
inflater
,
&
nva_out
,
ent
);
if
(
rv
<
0
)
{
if
(
rv
!=
0
)
{
goto
fail
;
}
}
...
...
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