Skip to content

Commit 977f276

Browse files
author
blackhedd
committed
fixed small bug, missing case in PDU parser
1 parent 765988a commit 977f276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/snmp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def parse_ber_object ber_object
175175
# Defined in RFC1157, pgh 4.1.2.
176176
def parse_get_request data
177177
send :request_id=, data[0].to_i
178-
# data[1] is error-status, always 0.
179-
# data[2] is error-index, always 0.
178+
send :error_status=, data[1].to_i
179+
send :error_index=, data[2].to_i
180180
data[3].each {|n,v|
181181
# A variable-binding, of which there may be several,
182182
# consists of an OID and a BER null.

0 commit comments

Comments
 (0)