If sending the big body message fails, then just assume that this is

a network error, we are sending more than 50MB, but check and count
the result of the final "<CRLF>.<CRLF>" message.
This commit is contained in:
djalal 2011-06-27 22:24:13 +00:00
parent 55da9dc683
commit b9237eac33

View file

@ -247,11 +247,7 @@ local function exploit_heap(socket, smtp_opts)
body_size = body_size + #filler
status, ret = socket:send(filler)
if not status then
if string.match(response, "connection closed") then
return clean(socket, true, "heap")
else
return clean(socket, status, "failed to send body.")
end
return clean(socket, status, "failed to send body.")
end
end