aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/snmp
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2016-10-13 21:16:55 +0200
committerJeff Morriss <jeff.morriss.ws@gmail.com>2016-10-14 13:28:05 +0000
commitdb690aa4444322d85f40ecef7892ec12b3e423b9 (patch)
tree86a439cadea02c6287556b48aa38e270e26962ac /epan/dissectors/asn1/snmp
parent0aae3b1eaacc1cdb74ef81875776b7b496a46939 (diff)
Append Integer32 value to varbind also.
Integer32 is handled slightly different from other values, but that doesn't mean its pi_value shouldn't be saved to add to the varbind later on. Bug: 13013 Change-Id: I6789a75ffd3bb95b7dd68f9cb356dbd85fc669d4 Reviewed-on: https://code.wireshark.org/review/18189 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'epan/dissectors/asn1/snmp')
-rw-r--r--epan/dissectors/asn1/snmp/packet-snmp-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/asn1/snmp/packet-snmp-template.c b/epan/dissectors/asn1/snmp/packet-snmp-template.c
index 3b3cfb70a1..90d0a3aebe 100644
--- a/epan/dissectors/asn1/snmp/packet-snmp-template.c
+++ b/epan/dissectors/asn1/snmp/packet-snmp-template.c
@@ -898,7 +898,7 @@ indexing_done:
int_val_offset++;
}
}
- proto_tree_add_int64(pt_varbind, hf_snmp_integer32_value, tvb,value_offset,value_len, val);
+ pi_value = proto_tree_add_int64(pt_varbind, hf_snmp_integer32_value, tvb,value_offset,value_len, val);
goto already_added;
}