From dc9f7820176b7c7c85f6ac290a2ca2d0941219e1 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 29 Nov 2015 00:13:59 +0000 Subject: Add BASE_ALLOW_ZERO for byte arrays that are validly zero sized. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit implies that the field should be there and isn't. Allow dissectors to specify when a zero-sized array for a field is perfectly valid. Ping-Bug: 11803 Change-Id: I3fd60e3c6f832c6b4a3a8837ebc52c3e74e795ae Reviewed-on: https://code.wireshark.org/review/12271 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: João Valverde Reviewed-by: Michael Mann --- epan/ftypes/ftype-bytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/ftypes/ftype-bytes.c') diff --git a/epan/ftypes/ftype-bytes.c b/epan/ftypes/ftype-bytes.c index 008772b7cf..0733681dd2 100644 --- a/epan/ftypes/ftype-bytes.c +++ b/epan/ftypes/ftype-bytes.c @@ -142,7 +142,7 @@ bytes_to_repr(fvalue_t *fv, ftrepr_t rtype, int field_display, char *buf) { char separator; - switch(field_display) + switch(FIELD_DISPLAY(field_display)) { case SEP_DOT: separator = '.'; -- cgit v1.2.1