aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ppsocket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ppsocket.cc')
-rw-r--r--lib/ppsocket.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ppsocket.cc b/lib/ppsocket.cc
index 0053436..8940148 100644
--- a/lib/ppsocket.cc
+++ b/lib/ppsocket.cc
@@ -297,6 +297,8 @@ getBufferStore(bufferStore & a, bool wait)
return -1;
}
l = ntohl(l);
+ if (l > 16384)
+ return -1;
bp = buff = new unsigned char[l];
while (l > 0) {
int j = recv(bp, l, MSG_NOSIGNAL);