rapid7/metasploit-framework — pull request #2893 by wchen-r7 (2014-01-17 17:52:32+00:00)
Title: Fix nil bug in jboss_invoke_deploy.rb

If there is a connection timeout, the module shouldn't access the "code" method because that does not exist.

Verification step:

You can either do it this way:

- [ ] Set up a webserver that times out
- [ ] Run the module against that web server to reproduce the issue
- [ ] Run the patched version of the module against that web server
- [ ] Confirm you no longer see the same error.

Or you can just do it this way:

- [ ] See the diff and confirm that the unpatched version does indeed try to access the 'code' method if res is nil