From 977f276191fedfbec42500a71f515e9cb60e2641 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Mon, 18 Dec 2006 20:16:32 +0000 Subject: [PATCH] fixed small bug, missing case in PDU parser --- lib/net/snmp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/snmp.rb b/lib/net/snmp.rb index ef981f5..09877f5 100644 --- a/lib/net/snmp.rb +++ b/lib/net/snmp.rb @@ -175,8 +175,8 @@ module Net # Defined in RFC1157, pgh 4.1.2. def parse_get_request data send :request_id=, data[0].to_i - # data[1] is error-status, always 0. - # data[2] is error-index, always 0. + send :error_status=, data[1].to_i + send :error_index=, data[2].to_i data[3].each {|n,v| # A variable-binding, of which there may be several, # consists of an OID and a BER null.