Clean up an SNMP rescue clause that makes Windows Ruby builds sad.

git-svn-id: file:///home/svn/framework3/trunk@12530 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Tod Beardsley 2011-05-03 07:51:09 +00:00
parent 4c84181c44
commit 98831c3285
2 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ module BER #:nodoc:all
class InvalidLength < RuntimeError; end
class InvalidTag < RuntimeError; end
class InvalidObjectId < RuntimeError; end
class InvalidLength < RuntimeError; end
def assert_no_remainder(remainder)
raise ParseError, remainder.inspect if (remainder and remainder != "")

View File

@ -152,7 +152,7 @@ class Metasploit3 < Msf::Auxiliary
# Used to flag whether this version was compatible
finished = true
rescue ::SNMP::UnsupportedPduTag, ::SNMP::InvalidPduTag, ::SNMP::ParseError, ::SNMP::InvalidErrorStatus, ::SNMP::InvalidTrapVarbind, ::SNMP::InvalidGenericTrap, ::SNMP::OutOfData, ::SNMP::InvalidLength, ::SNMP::InvalidTag, ::SNMP::InvalidObjectId, ::SNMP::InvalidLength, ::SNMP::ModuleNotLoadedError, ::SNMP::UnsupportedValueTag
rescue ::SNMP::UnsupportedPduTag, ::SNMP::InvalidPduTag, ::SNMP::ParseError, ::SNMP::InvalidErrorStatus, ::SNMP::InvalidTrapVarbind, ::SNMP::InvalidGenericTrap, ::SNMP::BER::OutOfData, ::SNMP::BER::InvalidLength, ::SNMP::BER::InvalidTag, ::SNMP::BER::InvalidObjectId, ::SNMP::MIB::ModuleNotLoadedError, ::SNMP::UnsupportedValueTag
next
rescue ::SNMP::UnsupportedVersion