Ethereal-dev: [Ethereal-dev] packet-cpha.c one liner fix (crash)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Yaniv Kaul" <ykaul@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Aug 2002 11:59:04 +0200
Smallest typo (hdr.is_if_trusted instead of hf_is_if_trusted in line 415):



--- packet-cpha.c       Wed Aug 28 11:54:00 2002
+++ packet-cpha.fix.c   Wed Aug 28 11:52:53 2002
@@ -412,7 +412,7 @@
   proto_tree_add_ether(tree, hf_ethernet_add, tvb, offset, 6,
hdr.ethernet_add);
   offset += 6;

-  proto_tree_add_boolean(tree, hdr.is_if_trusted, tvb, offset,
sizeof(hdr.is_if_trusted), hdr.is_if_trusted);
+  proto_tree_add_boolean(tree, hf_is_if_trusted, tvb, offset,
sizeof(hdr.is_if_trusted), hdr.is_if_trusted);
   offset += sizeof(hdr.is_if_trusted);

   proto_tree_add_ipv4(tree, hf_ip, tvb, offset, sizeof(hdr.ip), hdr.ip);