summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-03-15 00:00:42 +0100
committerChristoph Erhardt <kolab@sicherha.de>2022-03-15 00:01:00 +0100
commit6bccc291371acfd5b4844d016fa7073338cc2ee6 (patch)
tree252488d8e65077cce7cd10022a5cb8f9644963e5
parent40cb3982dd8e172601dd00df423633e7b66187c2 (diff)
downloadpykolab-6bccc291371acfd5b4844d016fa7073338cc2ee6.tar.gz
[Python 3] mixed string operation on saslsocket
Summary: saslsocket uses binary coded strings (literal byte strings) Reviewers: #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Differential Revision: https://git.kolab.org/D3451
-rw-r--r--saslauthd/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index 73beb93..f0c8892 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -270,13 +270,13 @@ class SASLAuthDaemon(object):
if success:
# #1170: Catch broken pipe error (incomplete authentication request)
try:
- clientsocket.send(struct.pack("!H2s", 2, "OK"))
+ clientsocket.send(struct.pack("!H2s", 2, b"OK"))
except:
pass
else:
# #1170: Catch broken pipe error (incomplete authentication request)
try:
- clientsocket.send(struct.pack("!H2s", 2, "NO"))
+ clientsocket.send(struct.pack("!H2s", 2, b"NO"))
except:
pass