Fix the call that adds the local preference to the tree.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 May 2003 05:35:42 +0000 (05:35 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 May 2003 05:35:42 +0000 (05:35 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7673 f5534014-38df-0310-8fa8-9805f1628bb7

packet-bgp.c

index 76dbc1a1032310fe4af4e7e56c6e0ea7aef1720d..d058bd4f0e1586fed45061bc69d6f2e55aecac7f 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for BGP packet dissection.
  * Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org>
  *
- * $Id: packet-bgp.c,v 1.77 2003/04/25 14:44:43 gerald Exp $
+ * $Id: packet-bgp.c,v 1.78 2003/05/15 05:35:42 guy Exp $
  *
  * Supports:
  * RFC1771 A Border Gateway Protocol 4 (BGP-4)
@@ -1821,7 +1821,7 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree)
                            "Local preference (invalid): %u %s", tlen,
                              (tlen == 1) ? "byte" : "bytes");
                } else {
-                   proto_tree_add_uint(subtree2, hf_bgp_local_pref, tvb,
+                   proto_tree_add_item(subtree2, hf_bgp_local_pref, tvb,
                            o + i + aoff, tlen, FALSE);
                }
                break;