summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2020-03-20 15:56:57 +0300
committerGitHub <noreply@github.com>2020-03-20 06:56:57 -0600
commit61b427fa47b93e9d3d11eda7fa4a8c551fc69f1e (patch)
tree1e482f1df4d1bd82e06979828c32fd73304a7982 /caddyconfig
parent42a6628935d9bdda3391daf8665b39ef046ccbe0 (diff)
v2: fuzz: update function signature of caddyfile.Parse (#3160)
Diffstat (limited to 'caddyconfig')
-rw-r--r--caddyconfig/caddyfile/parse_fuzz.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/caddyconfig/caddyfile/parse_fuzz.go b/caddyconfig/caddyfile/parse_fuzz.go
index d0ea7e7..a6a698f 100644
--- a/caddyconfig/caddyfile/parse_fuzz.go
+++ b/caddyconfig/caddyfile/parse_fuzz.go
@@ -17,12 +17,8 @@
package caddyfile
-import (
- "bytes"
-)
-
func FuzzParseCaddyfile(data []byte) (score int) {
- sb, err := Parse("Caddyfile", bytes.NewReader(data))
+ sb, err := Parse("Caddyfile", data)
if err != nil {
// if both an error is received and some ServerBlocks,
// then the parse was able to parse partially. Mark this