diff options
author | Gerald Combs <gerald@wireshark.org> | 2004-03-18 15:53:22 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2004-03-18 15:53:22 +0000 |
commit | d714f1153f294fd9f2e28b9559a21e22c0f2d447 (patch) | |
tree | e99d1fbadc95043458f4c3c660956c1edc6c6a16 | |
parent | 4afd41eededf53c14265a8346d3af1f6574a699a (diff) |
Call proto_register_field_array() after proto_register_protocol(), and not
before.
svn path=/trunk/; revision=10401
-rw-r--r-- | packet-wsp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-wsp.c b/packet-wsp.c index d0da8e4a1e..1b09c8aa32 100644 --- a/packet-wsp.c +++ b/packet-wsp.c @@ -2,7 +2,7 @@ * * Routines to dissect WSP component of WAP traffic. * - * $Id: packet-wsp.c,v 1.111 2004/03/08 22:03:59 obiot Exp $ + * $Id: packet-wsp.c,v 1.112 2004/03/18 15:53:22 gerald Exp $ * * Refer to the AUTHORS file or the AUTHORS section in the man page * for contacting the author(s) of this file. @@ -7241,10 +7241,6 @@ proto_register_sir(void) &ett_sir, /* Session Initiation Request */ }; - /* Register header fields and protocol subtrees */ - proto_register_field_array(proto_sir, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); - /* Register the dissector */ proto_sir = proto_register_protocol( "WAP Session Initiation Request", /* protocol name for use by ethereal */ @@ -7254,6 +7250,10 @@ proto_register_sir(void) < URL:http://www.iana.org/assignments/port-numbers/ > */ ); + + /* Register header fields and protocol subtrees */ + proto_register_field_array(proto_sir, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); } void |