We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765988a commit 977f276Copy full SHA for 977f276
lib/net/snmp.rb
@@ -175,8 +175,8 @@ def parse_ber_object ber_object
175
# Defined in RFC1157, pgh 4.1.2.
176
def parse_get_request data
177
send :request_id=, data[0].to_i
178
- # data[1] is error-status, always 0.
179
- # data[2] is error-index, always 0.
+ send :error_status=, data[1].to_i
+ send :error_index=, data[2].to_i
180
data[3].each {|n,v|
181
# A variable-binding, of which there may be several,
182
# consists of an OID and a BER null.
0 commit comments