Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
fuzz: fix the FuzzFormat comparison (#4117)
Mohammed Al Sahaf committed
Apr 15, 2021 at 23:03 UTC
00e12aa918aedcfae3a69292efb70de615e172dd
1 file changed
+3
-1
caddyconfig/caddyfile/formatter_fuzz.go
+3
-1
@@ -16,9 +16,11 @@
16
17
package caddyfile
18
19
+import "bytes"
20
+
21
func FuzzFormat(input []byte) int {
22
formatted := Format(input)
21
- if formatted != Format(formatted) {
23
+ if bytes.Equal(formatted, Format(formatted)) {
24
return 1
25
}
26
return 0