From e96cd69468566b3c19f0593bcb6fc65f3393099c Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Mon, 16 May 2011 17:02:22 +0000 Subject: Avoid passing a NULL string pointer to format routines: some libc's (e.g., Solaris') will seg-fault on that. svn path=/trunk/; revision=37181 --- epan/dissectors/packet-netflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-netflow.c') diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c index a078e1d5e3..4284bdd6a4 100644 --- a/epan/dissectors/packet-netflow.c +++ b/epan/dissectors/packet-netflow.c @@ -4791,7 +4791,7 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree, ti = proto_tree_add_bytes_format_value(pdutree, hf_ipfix_enterprise_private_entry, tvb, offset, length, NULL, "(%s) Type %u: Value (hex bytes): %s", - pen_str, + pen_str ? pen_str : "(null)", masked_type, tvb_bytes_to_str_punct(tvb, offset, length, ' ')); } @@ -6092,7 +6092,7 @@ proto_register_netflow(void) FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL} }, - {&hf_cflow_permanent_packets, + {&hf_cflow_permanent_packets, {"Permanent Packets", "cflow.permanent_packets", FT_UINT32, BASE_DEC, NULL, 0x0, "Running Count of packets for permanent flows", HFILL} -- cgit v1.2.3