summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/ssl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 5e2da29..af1cc84 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -264,6 +264,10 @@ class SSLSocket(socket):
def sendall(self, data, flags=0):
self._checkClosed()
if self._sslobj:
+ if flags != 0:
+ raise ValueError(
+ "non-zero flags not allowed in calls to sendall() on %s" %
+ self.__class__)
amount = len(data)
count = 0
while (count < amount):