summaryrefslogtreecommitdiff
path: root/pkg/auth/sip2/spec.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/auth/sip2/spec.go')
-rw-r--r--pkg/auth/sip2/spec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/auth/sip2/spec.go b/pkg/auth/sip2/spec.go
index 60a14d9..ba7c356 100644
--- a/pkg/auth/sip2/spec.go
+++ b/pkg/auth/sip2/spec.go
@@ -111,7 +111,7 @@ func getParser() *Parser {
}
parser.parseMessage = func(msg string) *Message {
- txt := msg[:len(msg)-len(terminator)]
+ txt := msg[:len(msg)-len(TelnetTerminator)]
code, err := strconv.Atoi(txt[:2])
if nil != err {
log.Printf("Error parsing integer: %s\n", txt[:2])