v2: fuzz: update function signature of caddyfile.Parse (#3160)

This commit is contained in:
Mohammed Al Sahaf
2020-03-20 15:56:57 +03:00
committed by GitHub
parent 42a6628935
commit 61b427fa47
+1 -5
View File
@@ -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