Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
Fork
libwebsockets
Commits
a27dfb2a
Commit
a27dfb2a
authored
Aug 23, 2018
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
clean: coverity
parent
253942ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/core/output.c
+1
-1
1 addition, 1 deletion
lib/core/output.c
lib/roles/h2/ops-h2.c
+4
-1
4 additions, 1 deletion
lib/roles/h2/ops-h2.c
lib/roles/http/server/server.c
+1
-1
1 addition, 1 deletion
lib/roles/http/server/server.c
with
6 additions
and
3 deletions
lib/core/output.c
+
1
−
1
View file @
a27dfb2a
...
@@ -84,7 +84,7 @@ int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len)
...
@@ -84,7 +84,7 @@ int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len)
lwsl_debug
(
"%s: draining %d
\n
"
,
__func__
,
(
int
)
len
);
lwsl_debug
(
"%s: draining %d
\n
"
,
__func__
,
(
int
)
len
);
}
}
if
(
!
len
)
if
(
!
len
||
!
buf
)
return
0
;
return
0
;
if
(
!
wsi
->
http2_substream
&&
!
lws_socket_is_valid
(
wsi
->
desc
.
sockfd
))
if
(
!
wsi
->
http2_substream
&&
!
lws_socket_is_valid
(
wsi
->
desc
.
sockfd
))
...
...
This diff is collapsed.
Click to expand it.
lib/roles/h2/ops-h2.c
+
4
−
1
View file @
a27dfb2a
...
@@ -362,6 +362,9 @@ rops_write_role_protocol_h2(struct lws *wsi, unsigned char *buf, size_t len,
...
@@ -362,6 +362,9 @@ rops_write_role_protocol_h2(struct lws *wsi, unsigned char *buf, size_t len,
unsigned
char
flags
=
0
,
base
=
(
*
wp
)
&
0x1f
;
unsigned
char
flags
=
0
,
base
=
(
*
wp
)
&
0x1f
;
size_t
olen
=
len
;
size_t
olen
=
len
;
int
n
;
int
n
;
#if defined(LWS_WITH_HTTP_STREAM_COMPRESSION)
unsigned
char
mtubuf
[
1450
+
LWS_PRE
];
#endif
/* if not in a state to send stuff, then just send nothing */
/* if not in a state to send stuff, then just send nothing */
...
@@ -386,7 +389,7 @@ rops_write_role_protocol_h2(struct lws *wsi, unsigned char *buf, size_t len,
...
@@ -386,7 +389,7 @@ rops_write_role_protocol_h2(struct lws *wsi, unsigned char *buf, size_t len,
#if defined(LWS_WITH_HTTP_STREAM_COMPRESSION)
#if defined(LWS_WITH_HTTP_STREAM_COMPRESSION)
if
(
wsi
->
http
.
lcs
)
{
if
(
wsi
->
http
.
lcs
)
{
unsigned
char
mtubuf
[
1450
+
LWS_PRE
],
*
out
=
mtubuf
+
LWS_PRE
;
unsigned
char
*
out
=
mtubuf
+
LWS_PRE
;
size_t
o
=
sizeof
(
mtubuf
)
-
LWS_PRE
;
size_t
o
=
sizeof
(
mtubuf
)
-
LWS_PRE
;
n
=
lws_http_compression_transform
(
wsi
,
buf
,
len
,
wp
,
&
out
,
&
o
);
n
=
lws_http_compression_transform
(
wsi
,
buf
,
len
,
wp
,
&
out
,
&
o
);
...
...
This diff is collapsed.
Click to expand it.
lib/roles/http/server/server.c
+
1
−
1
View file @
a27dfb2a
...
@@ -587,7 +587,7 @@ lws_http_serve(struct lws *wsi, char *uri, const char *origin,
...
@@ -587,7 +587,7 @@ lws_http_serve(struct lws *wsi, char *uri, const char *origin,
/* but we still need to send cache control... */
/* but we still need to send cache control... */
if
(
m
&&
m
->
cache_max_age
&&
m
->
cache_reusable
)
{
if
(
m
->
cache_max_age
&&
m
->
cache_reusable
)
{
if
(
!
m
->
cache_revalidate
)
{
if
(
!
m
->
cache_revalidate
)
{
cc
=
cache_control
;
cc
=
cache_control
;
cclen
=
sprintf
(
cache_control
,
"%s, max-age=%u"
,
cclen
=
sprintf
(
cache_control
,
"%s, max-age=%u"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment