Change naming in server fuzzer

This commit is contained in:
AdamKorcz
2021-07-23 10:19:07 +01:00
parent 07375182e7
commit 278d42900a

View File

@@ -15,7 +15,7 @@
package server
var defaultServerOptions = Options{
var defaultFuzzServerOptions = Options{
Host: "127.0.0.1",
Trace: true,
Debug: true,
@@ -24,15 +24,15 @@ var defaultServerOptions = Options{
NoSigs: true,
}
func dummyClient() *client {
return &client{srv: New(&defaultServerOptions), msubs: -1, mpay: -1, mcl: MAX_CONTROL_LINE_SIZE}
func dummyFuzzClient() *client {
return &client{srv: New(&defaultFuzzServerOptions), msubs: -1, mpay: -1, mcl: MAX_CONTROL_LINE_SIZE}
}
func FuzzClient(data []byte) int {
if len(data) < 100 {
return -1
}
c := dummyClient()
c := dummyFuzzClient()
err := c.parse(data[:50])
if err != nil {