mirror of https://github.com/caddyserver/caddy.git
fuzz: fix the FuzzFormat comparison (#4117)
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue