aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/snmp
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2016-05-01 18:31:55 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2016-05-04 19:47:41 +0000
commit5b1d42c46a7b3dd58d21e6ed390506b1d35a8807 (patch)
tree846d80ea712aed5c1463f3e49be579b5c544e3fd /epan/dissectors/asn1/snmp
parent0eff7256eca593d723f2c9ecdba0d4d0f85f403e (diff)
snmp: return -1 (not 0) if we need more data from TCP
Change-Id: I72bb68bb09a5b3d4501676594b76deff63faa0bf Reviewed-on: https://code.wireshark.org/review/15211 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/asn1/snmp')
-rw-r--r--epan/dissectors/asn1/snmp/packet-snmp-template.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/epan/dissectors/asn1/snmp/packet-snmp-template.c b/epan/dissectors/asn1/snmp/packet-snmp-template.c
index b76b79a159..dcd7c50bf0 100644
--- a/epan/dissectors/asn1/snmp/packet-snmp-template.c
+++ b/epan/dissectors/asn1/snmp/packet-snmp-template.c
@@ -1948,13 +1948,7 @@ dissect_snmp_pdu(tvbuff_t *tvb, int offset, packet_info *pinfo,
*/
pinfo->desegment_offset = offset;
pinfo->desegment_len = DESEGMENT_ONE_MORE_SEGMENT;
-
- /*
- * Return 0, which means "I didn't dissect anything
- * because I don't have enough data - we need
- * to desegment".
- */
- return 0;
+ return -1;
}
}