From be625b9be781e469456d01053336b18cfba63ede Mon Sep 17 00:00:00 2001 From: Christoph Wurm Date: Thu, 2 Nov 2017 19:14:28 +0000 Subject: [PATCH] Fix Elasticsearch hex dump Change-Id: I5b2006a74e95759afce518aaadfe47c54978476a Reviewed-on: https://code.wireshark.org/review/24215 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/print.c b/epan/print.c index 5ba17d6b47..6973e345b4 100644 --- a/epan/print.c +++ b/epan/print.c @@ -1376,7 +1376,7 @@ ek_write_attr(GSList *attr_instances, write_json_data *pdata) { GSList *current_node = attr_instances; proto_node *pnode = (proto_node *) current_node->data; - field_info *fi = NULL; + field_info *fi = PNODE_FINFO(pnode); // Hex dump -x if (pdata->print_hex && fi->length > 0 && fi->hfinfo->id != hf_text_only) {