fuzz: fix the FuzzFormat comparison (#4117)

This commit is contained in:
Mohammed Al Sahaf authored and GitHub committed 2021-04-15 23:03:54 +00:00
1 parent 2250920e1d
commit 00e12aa918
1 file changed
+3 -1
+3 -1
View File
@@ -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