Skip to content

Commit 89753a6

Browse files
committed
Fix undefined method error
[FixRM rapid7#8323]
1 parent 92752de commit 89753a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/oracle/xdb_sid_brute.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def run_host(ip)
242242
}
243243
}, -1)
244244

245-
if (res.code == 200)
245+
if res and res.code == 200
246246
if (not res.body.length > 0)
247247
# sometimes weird bug where body doesn't have value yet
248248
res.body = res.bufq
@@ -294,7 +294,7 @@ def run_host(ip)
294294
}
295295
}, -1)
296296

297-
if (res.code == 200)
297+
if res and res.code == 200
298298
if (not res.body.length > 0)
299299
# sometimes weird bug where body doesn't have value yet
300300
res.body = res.bufq

0 commit comments

Comments
 (0)