aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pcnfsd.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-15 22:41:57 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-15 22:41:57 +0000
commit5731404a76e855e4e9fc668bcbca581efa4157d6 (patch)
treef47ad51a0b89e8928364c8ae55f70a5d16d8dfdf /epan/dissectors/packet-pcnfsd.c
parent88726ce48212e915edeed59cdb7c0a51e5f61662 (diff)
From http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1539 :
Hexadecimal and octal are unsigned. Don't let dissectors register signed fields (FT_INT*) to be displayed in hexadecimal (including HEX_DEC and DEC_HEX) or octal. Fix dissectors that do that mostly by changing the fields to unsigned though in PANA it appears the fields are meant to be signed so change those fields to be displayed in decimal. This fixes an assertion crash in hfinfo_numeric_format() if/when someone tries to create a filter using one of these mixed signed/unsigned fields (because that routine does not know how to present the user with a signed value in hex). Also add FT_*INT64 to the "make sure it's not BASE_NONE" check. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24643 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-pcnfsd.c')
-rw-r--r--epan/dissectors/packet-pcnfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pcnfsd.c b/epan/dissectors/packet-pcnfsd.c
index 5dc24022a9..d1962ec9b6 100644
--- a/epan/dissectors/packet-pcnfsd.c
+++ b/epan/dissectors/packet-pcnfsd.c
@@ -402,7 +402,7 @@ proto_register_pcnfsd(void)
"Home Directory", "pcnfsd.homedir", FT_STRING, BASE_DEC,
NULL, 0, "Home Directory", HFILL }},
{ &hf_pcnfsd_def_umask, {
- "def_umask", "pcnfsd.def_umask", FT_INT32, BASE_OCT,
+ "def_umask", "pcnfsd.def_umask", FT_UINT32, BASE_OCT,
NULL, 0, "def_umask", HFILL }},
{ &hf_pcnfsd_username, {
"User name", "pcnfsd.username", FT_STRING, BASE_DEC,