From b07e176b30ce243446d8fac10c173a40e722e2bf Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Tue, 26 Jan 2021 15:55:00 -0700 Subject: [PATCH] Fixed typo in new const name Signed-off-by: Ivan Kozlovic --- server/const.go | 4 ++-- server/parser.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/const.go b/server/const.go index 19dd9b02..0890478b 100644 --- a/server/const.go +++ b/server/const.go @@ -124,8 +124,8 @@ const ( // PROTO_SNIPPET_SIZE is the default size of proto to print on parse errors. PROTO_SNIPPET_SIZE = 32 - // MAX_CONTOL_LINE_SNIPPET_SIZE is the default size of proto to print on max control line errors. - MAX_CONTOL_LINE_SNIPPET_SIZE = 128 + // MAX_CONTROL_LINE_SNIPPET_SIZE is the default size of proto to print on max control line errors. + MAX_CONTROL_LINE_SNIPPET_SIZE = 128 // MAX_MSG_ARGS Maximum possible number of arguments from MSG proto. MAX_MSG_ARGS = 4 diff --git a/server/parser.go b/server/parser.go index 331ddf70..c73b24fb 100644 --- a/server/parser.go +++ b/server/parser.go @@ -1215,7 +1215,7 @@ func (c *client) overMaxControlLineLimit(arg []byte, mcl int32) error { } if len(arg) > int(mcl) { err := NewErrorCtx(ErrMaxControlLine, "State %d, max_control_line %d, Buffer len %d (snip: %s...)", - c.state, int(mcl), len(c.argBuf), protoSnippet(0, MAX_CONTOL_LINE_SNIPPET_SIZE, arg)) + c.state, int(mcl), len(c.argBuf), protoSnippet(0, MAX_CONTROL_LINE_SNIPPET_SIZE, arg)) c.sendErr(err.Error()) c.closeConnection(MaxControlLineExceeded) return err