Fix undefined method error

[FixRM #8323]
bug/bundler_fix
sinn3r 2013-08-21 01:22:27 -05:00
parent 92752de651
commit 89753a6390
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ class Metasploit3 < Msf::Auxiliary
} }
}, -1) }, -1)
if (res.code == 200) if res and res.code == 200
if (not res.body.length > 0) if (not res.body.length > 0)
# sometimes weird bug where body doesn't have value yet # sometimes weird bug where body doesn't have value yet
res.body = res.bufq res.body = res.bufq
@ -294,7 +294,7 @@ class Metasploit3 < Msf::Auxiliary
} }
}, -1) }, -1)
if (res.code == 200) if res and res.code == 200
if (not res.body.length > 0) if (not res.body.length > 0)
# sometimes weird bug where body doesn't have value yet # sometimes weird bug where body doesn't have value yet
res.body = res.bufq res.body = res.bufq