diff options
author | Micael Karlberg <[email protected]> | 2012-08-02 08:50:18 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2012-08-02 08:50:18 +0200 |
commit | 3cec104dae525879756d19629404eddfb9910d75 (patch) | |
tree | 0c400c2ba4ec0021b90dd33b0fdfb2725b76419d /lib/snmp/src/agent | |
parent | 79246395195107336cd07ad123eb9ce947f3335a (diff) | |
parent | feae72c93a4cdebb4287d0b52f165b638b159cb2 (diff) | |
download | otp-3cec104dae525879756d19629404eddfb9910d75.tar.gz otp-3cec104dae525879756d19629404eddfb9910d75.tar.bz2 otp-3cec104dae525879756d19629404eddfb9910d75.zip |
Merge branch 'bmk/snmp/agent/walk_over_vacmAccessTable/OTP-10165' into bmk/snmp/snmp4221_integration
Diffstat (limited to 'lib/snmp/src/agent')
-rw-r--r-- | lib/snmp/src/agent/snmp_view_based_acm_mib.erl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl index e7dea52857..436f15eb9c 100644 --- a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl +++ b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl @@ -774,10 +774,15 @@ do_vacmAccessTable_set(RowIndex, Cols) -> %% Cols are sorted, and all columns are > 3. +do_get_next(_RowIndex, []) -> + % Cols can be empty because we're called for each + % output of split_cols(); and one of that may well + % be empty. + []; do_get_next(RowIndex, Cols) -> case snmpa_vacm:get_next_row(RowIndex) of {NextIndex, Row} -> - F1 = fun(Col) when Col < ?vacmAccessStatus -> + F1 = fun(Col) when Col =< ?vacmAccessStatus -> {[Col | NextIndex], element(Col-3, Row)}; (_) -> endOfTable @@ -785,9 +790,9 @@ do_get_next(RowIndex, Cols) -> lists:map(F1, Cols); false -> case snmpa_vacm:get_next_row([]) of - {_NextIndex, Row} -> + {NextIndex2, Row} -> F2 = fun(Col) when Col < ?vacmAccessStatus -> - {[Col+1 | RowIndex], element(Col-2, Row)}; + {[Col+1 | NextIndex2], element(Col-2, Row)}; (_) -> endOfTable end, |