From 1fa5195b2f81be3eb8639f87d9d3dafc3c2eebb1 Mon Sep 17 00:00:00 2001 From: "fox.cpp" Date: Fri, 5 Jun 2020 12:34:29 +0300 Subject: [PATCH] Fix handling of empty response to SASL challenge --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 9609f40..79e9dc0 100644 --- a/upstream.go +++ b/upstream.go @@ -507,7 +507,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error { // TODO: send response in multiple chunks if >= 400 bytes var respStr = "+" - if resp != nil { + if len(resp) != 0 { respStr = base64.StdEncoding.EncodeToString(resp) }