diff options
author | xengineering <me@xengineering.eu> | 2023-07-03 22:17:15 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-03 22:17:15 +0200 |
commit | 2fade1039c1842f08b30da5c95b5542b57e38ec6 (patch) | |
tree | 329ae6641f6b00f1e0cbf65321ac44b90d0c15e4 /xmpp/sasl.go | |
parent | cf520b079743ec95d085a439d00b841c253c564a (diff) | |
download | limox-2fade1039c1842f08b30da5c95b5542b57e38ec6.tar limox-2fade1039c1842f08b30da5c95b5542b57e38ec6.tar.zst limox-2fade1039c1842f08b30da5c95b5542b57e38ec6.zip |
Move xml.Encoder to session struct
The encoderDecoder sub-struct of the session struct should be removed in
little steps. This is the first one.
Diffstat (limited to 'xmpp/sasl.go')
-rw-r--r-- | xmpp/sasl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/sasl.go b/xmpp/sasl.go index 24edc9a..0c13f36 100644 --- a/xmpp/sasl.go +++ b/xmpp/sasl.go @@ -23,7 +23,7 @@ func (s *session) sasl() { inner.Payload = make([]byte, base64.StdEncoding.EncodedLen(len(data))) base64.StdEncoding.Encode(inner.Payload, data) - err := s.ed.tx.EncodeElement(inner, start) + err := s.tx.EncodeElement(inner, start) if err != nil { log.Println("Could not encode SASL PLAIN element!") } |