aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/tvbuff.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index df44f60955..6efe933ae2 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -4178,11 +4178,9 @@ tvb_get_bcd_string(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, gi
*/
octet = octet >> 4;
- if (len == 1 && octet == 0x0f) {
+ if (octet == 0x0f) {
/*
- * This is the last octet, and the high-order
- * nibble is 0xf, so we have an odd number of
- * digits, and this is a filler digit. Ignore
+ * This is the stop digit or a filler digit. Ignore
* it.
*/
break;