mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-17 01:30:34 +00:00
fuzz: fix the FuzzFormat comparison (#4117)
This commit is contained in:
committed by
GitHub
parent
2250920e1d
commit
00e12aa918
@@ -16,9 +16,11 @@
|
||||
|
||||
package caddyfile
|
||||
|
||||
import "bytes"
|
||||
|
||||
func FuzzFormat(input []byte) int {
|
||||
formatted := Format(input)
|
||||
if formatted != Format(formatted) {
|
||||
if bytes.Equal(formatted, Format(formatted)) {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user