Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
a7e8a260
Commit
a7e8a260
authored
Nov 28, 2022
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc_server: Fix -Wclobbered variable during dispatch
Spotted by GCC's fortification level 3.
parent
c5f0211a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
a00023.vtc
bin/varnishtest/tests/a00023.vtc
+29
-0
vtc_server.c
bin/varnishtest/vtc_server.c
+2
-1
No files found.
bin/varnishtest/tests/a00023.vtc
0 → 100644
View file @
a7e8a260
varnishtest "Run server -dispatch more than once"
feature ignore_unknown_macro
shell {
cat <<-'EOF' >_.vtc
varnishtest "Run server -dispatch more than once (nested)"
server s0 {
rxreq
txresp
} -dispatch
client c1 -connect ${s0_sock} {
txreq
rxresp
} -run
server s0 -break
server s0 -dispatch
client c1 -run
EOF
varnishtest -v _.vtc >_.log
}
shell -match "s1 +rxhdr" { cat _.log }
shell -match "s2 +rxhdr" { cat _.log }
bin/varnishtest/vtc_server.c
View file @
a7e8a260
...
...
@@ -336,7 +336,8 @@ static void *
server_dispatch_thread
(
void
*
priv
)
{
struct
server
*
s
,
*
s2
;
int
sn
=
1
,
fd
;
static
int
sn
=
1
;
int
fd
;
char
snbuf
[
8
];
struct
vtclog
*
vl
;
struct
sockaddr_storage
addr_s
;
...
...
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