~emersion/public-inbox

soju: Fix handling of empty response to SASL challenge v1 APPLIED

fox.cpp: 1
 Fix handling of empty response to SASL challenge

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/10902/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH soju] Fix handling of empty response to SASL challenge Export this patch

---
 upstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upstream.go b/upstream.go
index 82c2417..35cfb49 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)
		}

-- 
2.26.2
Thanks for the fix, pushed!