summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--saslauthd/__init__.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index 84024e3..edbca94 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -195,9 +195,17 @@ class SASLAuthDaemon(object):
auth.connect()
if auth.authenticate(login):
- clientsocket.send(struct.pack("!H2s", 2, "OK"))
+ # #1170: Catch broken pipe error (incomplete authentication request)
+ try:
+ clientsocket.send(struct.pack("!H2s", 2, "OK"))
+ except:
+ pass
else:
- clientsocket.send(struct.pack("!H2s", 2, "NO"))
+ # #1170: Catch broken pipe error (incomplete authentication request)
+ try:
+ clientsocket.send(struct.pack("!H2s", 2, "NO"))
+ except:
+ pass
clientsocket.close()