diff options
author | Micael Karlberg <bmk@erlang.org> | 2019-12-12 12:59:29 +0100 |
---|---|---|
committer | Micael Karlberg <bmk@erlang.org> | 2019-12-12 14:42:41 +0100 |
commit | 8b42f636f6e860def8e21c5636e6d05efc53860d (patch) | |
tree | b138183d397e33ed7741b2bea55dc5ef611c5879 | |
parent | b912ff1c6138782bab9750669380a862fc5659d4 (diff) | |
download | erlang-8b42f636f6e860def8e21c5636e6d05efc53860d.tar.gz |
[snmp|agent] Fixed value selection
The 'Value' was actually '{value, Value}'...
OTP-16349
-rw-r--r-- | lib/snmp/src/agent/snmpa_trap.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmpa_trap.erl b/lib/snmp/src/agent/snmpa_trap.erl index eaf5fde687..2d00441e2a 100644 --- a/lib/snmp/src/agent/snmpa_trap.erl +++ b/lib/snmp/src/agent/snmpa_trap.erl @@ -193,7 +193,8 @@ initiate_vars([{Oid, Asn1Type} | T], Varbinds) -> case delete_oid_from_varbinds(Oid, Varbinds) of {undefined, _, _} -> [{Oid, Asn1Type} | initiate_vars(T, Varbinds)]; - {?NOTIFICATION_IGNORE_VB_VALUE, _VarOid, RestOfVarbinds} -> % Skip this oid! + %% Skip this oid! + {{value, ?NOTIFICATION_IGNORE_VB_VALUE}, _VarOid, RestOfVarbinds} -> initiate_vars(T, RestOfVarbinds); {Value, VarOid, RestOfVarbinds} -> [{VarOid, Asn1Type, Value} | initiate_vars(T, RestOfVarbinds)] |