Initialize send_status at the function's start

bug/bundler_fix
jvazquez-r7 2014-02-19 16:54:29 -06:00
parent f7a483523c
commit c0cdea37f7
1 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,7 @@ module Exploit::Remote::SMTPDeliver
# not already established.
#
def send_message(data)
send_status = nil
already_connected = connected?
if already_connected
@ -143,7 +144,6 @@ module Exploit::Remote::SMTPDeliver
# Avoid sending tons of data and killing the connection if the server
# didn't like us.
send_status = nil
if not resp or not resp[0,3] == '354'
print_error("Server refused our mail")
else